/* ========== STYLE GLOBALNE ========== */
:root {
    --glass-bg: rgba(0, 20, 40, 0.35);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
    --glass-blur: blur(12px);
    --accent-blue: #00b4d8;
    --accent-blue-glow: rgba(0, 180, 216, 0.4);
    --accent-purple: #9d4edd;
    --accent-purple-glow: rgba(157, 78, 221, 0.4);
    --accent-gold: #ffb347;
    --accent-gold-glow: rgba(255, 180, 71, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-image: url('https://i.imgur.com/x9KsaKg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 180, 216, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.12) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* ===== GÓRNE MENU ===== */
.top-menu {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--glass-shadow);
    flex-wrap: wrap;
    gap: 15px;
}

.menu-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.menu-link:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

.menu-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.menu-link:hover img {
    transform: rotate(5deg) scale(1.1);
}

.menu-link.active {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
}

.menu-button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-button:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

.menu-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.menu-button:hover img {
    transform: rotate(5deg) scale(1.1);
}

/* ===== NAGŁÓWEK ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 4em;
    margin: 0;
    text-shadow: 0 0 30px var(--accent-purple-glow);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 30px var(--accent-purple-glow); }
    50% { text-shadow: 0 0 50px var(--accent-purple-glow), 0 0 20px var(--accent-blue-glow); }
}

.page-header p {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin: 10px 0 0;
    font-weight: 300;
}

/* ===== GŁÓWNY UKŁAD ===== */
.main-layout {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 25px;
    align-items: start;
}

/* ===== PANELE BOCZNE ===== */
.side-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 25px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.side-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px 0 rgba(157, 78, 221, 0.5);
    border-color: var(--accent-purple);
}

.side-panel h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    border-bottom: 2px solid rgba(157, 78, 221, 0.5);
    padding-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.side-panel:hover h2 {
    border-bottom-color: var(--accent-purple);
}

/* Kalendarz */
.calendar-container {
    width: 100%;
}

.calendar-header {
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-dates div {
    text-align: center;
    padding: 8px 3px;
    background: rgba(0, 30, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    position: relative;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.calendar-dates div:hover {
    background: rgba(157, 78, 221, 0.3);
    transform: scale(1.05);
}

.calendar-dates .next-session-dnd {
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.7), rgba(0, 119, 182, 0.5));
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.calendar-dates .next-session-wod {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.7), rgba(199, 125, 255, 0.5));
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.calendar-dates .next-session-fu {
    background: linear-gradient(135deg, rgba(255, 180, 71, 0.7), rgba(255, 140, 0, 0.5));
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.calendar-dates .session-tag {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6em;
    padding: 2px 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
}

.next-session-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
}

.next-session-info:hover {
    background: rgba(0, 30, 60, 0.8);
    border-color: var(--accent-purple);
}

.session-tag-dnd {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9em;
}

.session-tag-wod {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9em;
}

.session-tag-fu {
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9em;
}

/* Watch2Gether */
.w2g-container iframe {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.w2g-container iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
    border-color: var(--accent-purple);
}

.w2g-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.w2g-link:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
}

/* ===== SEKCJA GŁÓWNA ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px 0 rgba(157, 78, 221, 0.5);
    border-color: var(--accent-purple);
}

.section h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 2px solid rgba(157, 78, 221, 0.5);
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.section:hover h2 {
    border-bottom-color: var(--accent-purple);
}

/* Dziennik */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.journal-column {
    background: rgba(0, 30, 60, 0.4);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.journal-column:hover {
    background: rgba(0, 50, 90, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

.journal-column h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5em;
    text-align: center;
    border-bottom: 2px solid rgba(157, 78, 221, 0.4);
    padding-bottom: 10px;
}

.latest-post {
    background: rgba(0, 40, 70, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-top: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-post h4 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: var(--accent-blue);
}

.post-content-full {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.post-content-full::-webkit-scrollbar {
    width: 8px;
}

.post-content-full::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.post-content-full::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
}

.read-more {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.read-more:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
}

.full-journal-link {
    text-align: center;
    margin-top: 30px;
}

.full-journal-link a {
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid rgba(157, 78, 221, 0.5);
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    background: rgba(0, 20, 40, 0.3);
}

.full-journal-link a:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--accent-purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

/* Mapy */
.map-container {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 20px;
    padding: 15px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.map-container:hover {
    background: rgba(0, 40, 70, 0.6);
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container:hover iframe {
    border-color: var(--accent-purple);
}

/* Stopka */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

footer:hover {
    background: rgba(0, 30, 60, 0.6);
    border-color: var(--accent-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

/* Responsywność */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .top-menu {
        flex-direction: column;
    }
    
    .menu-links {
        justify-content: center;
        width: 100%;
    }
    
    .menu-link, .menu-button {
        width: 100%;
        justify-content: center;
    }
    
    .journal-grid {
        grid-template-columns: 1fr;
    }
}
/* Dodaj do :root w style.css jeśli brakuje */
:root {
    /* ... istniejące zmienne ... */
    --text-tertiary: rgba(255, 255, 255, 0.7);
}
/* ========== STYLE POMOCNIKA ========== */
.helper-layout {
    grid-template-columns: 1fr 1fr !important; /* Wymuś dwie kolumny */
}

/* Formularz inicjatywy */
.initiative-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.helper-input {
    background: rgba(0, 30, 60, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 12px 15px;
    color: white;
    font-size: 1em;
    flex: 1 1 auto;
    min-width: 120px;
    transition: all 0.3s ease;
}

.helper-input.small {
    padding: 8px 12px;
    width: 80px;
    min-width: auto;
}

.helper-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
    background: rgba(0, 50, 90, 0.9);
}

.helper-button {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1em;
}

.helper-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--accent-purple-glow);
    border-color: white;
}

.helper-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.helper-button.secondary:hover {
    background: rgba(157, 78, 221, 0.4);
    border-color: var(--accent-purple);
}

.helper-button.warning {
    background: rgba(220, 53, 69, 0.6);
}

.helper-button.warning:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #ff6b7c;
}

.helper-button.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Lista inicjatywy */
.initiative-list {
    background: rgba(0, 20, 40, 0.6);
    border-radius: 20px;
    padding: 15px;
    margin: 20px 0;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.initiative-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 40, 70, 0.6);
    border-radius: 15px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.initiative-item:hover {
    background: rgba(0, 60, 100, 0.8);
    border-color: var(--accent-purple);
    transform: translateX(5px);
}

.initiative-item span {
    font-size: 1.1em;
}

.initiative-item .init-value {
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.initiative-item .remove-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s ease;
}

.initiative-item .remove-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
}

.initiative-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

/* Rzuty kośćmi */
.dice-section {
    background: rgba(0, 20, 40, 0.4);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.dice-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: var(--accent-blue);
}

.dice-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.dice-controls label {
    display: flex;
    flex-direction: column;
    color: var(--text-secondary);
    font-size: 0.9em;
    gap: 5px;
}

.dice-results {
    margin-top: 30px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 20px;
    padding: 20px;
}

.results-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    margin: 15px 0;
    font-family: monospace;
    line-height: 1.6;
}

.results-log p {
    margin: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    color: var(--text-tertiary);
}

.results-log .crit-success {
    color: #4caf50;
    font-weight: bold;
}

.results-log .crit-fail {
    color: #f44336;
    font-weight: bold;
}

.helper-note {
    font-size: 0.8em;
    color: var(--text-tertiary);
    margin-top: 15px;
    font-style: italic;
}