:root {
    --eucalyptus: #5A8F7B;
    --eucalyptus-light: #7FA897;
    --eucalyptus-dark: #4A7465;
    --green: #6B8E23;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text-dark: #2C3E3F;
    --text-light: #5F6F6F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nawigacja */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: var(--eucalyptus);
}

.nav-menu a.active {
    color: var(--eucalyptus);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--eucalyptus-light) 0%, var(--eucalyptus) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🌿';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '🌿';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    bottom: 10%;
    right: -30px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    z-index: 1;
}

/* Mniejszy hero dla podstron */
.hero-small {
    background: linear-gradient(135deg, var(--eucalyptus-light) 0%, var(--eucalyptus) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    margin-bottom: 20px;
    font-weight: 400;
}

.wedding-date {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.eucalyptus-divider {
    font-size: 40px;
    margin: 20px 0;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Sekcje */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--white);
}

.section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--eucalyptus-dark);
    font-weight: 600;
}

/* Karty informacyjne */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(90, 143, 123, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-alt .info-card {
    background: var(--cream);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(90, 143, 123, 0.2);
}

.info-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--eucalyptus);
    font-size: 24px;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--eucalyptus-light);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    flex: 0 0 100px;
    text-align: center;
    font-weight: 600;
    color: var(--eucalyptus);
    font-size: 18px;
    padding-top: 10px;
}

.timeline-content {
    flex: 1;
    background: var(--cream);
    padding: 20px 25px;
    border-radius: 10px;
    margin: 0 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--cream) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--cream);
}

.timeline-content h3 {
    color: var(--eucalyptus-dark);
    margin-bottom: 8px;
    font-size: 20px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 15px;
}

/* Lokalizacje */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.location-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.location-card h3 {
    color: var(--eucalyptus);
    margin-bottom: 15px;
    font-size: 24px;
}

.location-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

/* Wyszukiwarka pokoi */
.room-finder {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

#guest-name {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--eucalyptus-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

#guest-name:focus {
    outline: none;
    border-color: var(--eucalyptus);
}

.search-box button {
    padding: 15px 40px;
    background: var(--eucalyptus);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.search-box button:hover {
    background: var(--eucalyptus-dark);
}

.room-result {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-card {
    background: var(--cream);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(90, 143, 123, 0.15);
    width: 100%;
}

.room-card h3 {
    color: var(--eucalyptus);
    font-size: 32px;
    margin-bottom: 10px;
}

.room-card p {
    color: var(--text-light);
    font-size: 18px;
}

.room-error {
    color: var(--text-light);
    font-size: 16px;
    text-align: center;
}

/* Galeria */
.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
}

.upload-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.upload-section h3 {
    color: var(--eucalyptus);
    margin-bottom: 20px;
    font-size: 24px;
}

.upload-area {
    border: 3px dashed var(--eucalyptus);
    padding: 50px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--cream);
    margin: 20px 0;
}

.upload-area:hover {
    background: rgba(90, 143, 123, 0.1);
    border-color: var(--eucalyptus-dark);
    transform: scale(1.01);
}

.upload-area.dragover {
    background: rgba(90, 143, 123, 0.2);
    border-color: var(--eucalyptus-dark);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.upload-hint {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.file-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--eucalyptus-light);
    background: var(--white);
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s;
}

.file-preview-item .remove-btn:hover {
    background: #c0392b;
}

.file-preview-item .file-name {
    padding: 8px;
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#photo-upload {
    margin: 20px 0;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
}

.upload-btn {
    padding: 15px 40px;
    background: var(--eucalyptus);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.upload-btn:hover:not(:disabled) {
    background: var(--eucalyptus-dark);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-btn {
    padding: 15px 40px;
    background: #95a5a6;
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.clear-btn:hover {
    background: #7f8c8d;
}

#upload-status {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.gallery-section {
    margin-top: 60px;
}

.gallery-section h3 {
    display: inline-block;
    margin-right: 20px;
    color: var(--eucalyptus);
}

.refresh-btn {
    background: var(--eucalyptus);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.refresh-btn:hover {
    background: var(--eucalyptus-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    z-index: 10;
}

.delete-photo-btn:hover {
    background: rgba(200, 35, 51, 1);
    transform: scale(1.1);
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 16px;
}

/* Śpiewnik */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.song-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.song-card h3 {
    color: var(--eucalyptus);
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid var(--eucalyptus-light);
    padding-bottom: 10px;
}

.song-lyrics {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 15px;
}

.song-lyrics p {
    margin-bottom: 15px;
}

.song-lyrics em {
    color: var(--eucalyptus-dark);
    font-style: italic;
    font-weight: 500;
}

.song-lyrics strong {
    color: var(--eucalyptus);
    font-weight: 600;
}

.collapse-indicator {
    float: right;
    font-size: 14px;
    color: var(--eucalyptus);
    transition: transform 0.3s ease;
}

.song-card.expanded .collapse-indicator {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--eucalyptus-dark);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin-bottom: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    .couple-names {
        font-size: 50px;
    }
    
    .wedding-date {
        font-size: 18px;
    }
    
    .section h2 {
        font-size: 32px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-time {
        position: absolute;
        left: 0;
        flex: none;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-item .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--cream) transparent transparent !important;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 12px;
    }
}