body {
    margin: 0;
    font-family: "Playfair Display", serif;
    background: #F7F8F5;
    color: #2C2C2C;
}

/* GOLD + GREEN THEME */
:root {
    --sage: #9FB8A7;
    --sage-dark: #7A9B88;
    --gold: #D4AF37;
    --light: #F7F8F5;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('img/MadziaDawid2.jpeg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(159, 184, 167, 0.35); /* delikatny szałwiowy filtr */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2.6rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* SECTIONS */
.section {
    padding: 70px 20px;
    text-align: center;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: var(--sage-dark);
}

/* THREE COLUMNS */
.three-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.column {
    width: 300px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    display: flex;
    flex-direction: column;
    align-items: center;       /* WYŚRODKOWANIE POZIOME */
    justify-content: center;   /* WYŚRODKOWANIE PIONOWE */
}

.column img {
    width: 58px;
    margin-bottom: 18px;       /* odstęp nad przyciskiem */
    opacity: 0.85;
    display: block;
}

.button {
    padding: 12px 25px;
    border: none;
    background: var(--sage-dark);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background: var(--sage);
}

/* FORM */
form {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--sage);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
    margin-top: 25px;
    background: var(--sage-dark);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 14px;
}

input[type="submit"]:hover {
    background: var(--sage);
}

/* COUNTDOWN */
.countdown {
    font-size: 2rem;
    color: var(--sage-dark);
    font-weight: bold;
    margin-top: 20px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* SCHEDULE */
.schedule {
    padding: 80px 20px;
    background: #F7F8F5;
}

.schedule-box {
    max-width: 600px;
    margin: auto;
    padding: 30px 40px;
    border-radius: 15px;
    background: #F7F8F5;
    backdrop-filter: blur(4px);
}

.schedule-item {
    margin: 18px 0;
    text-align: left;
    font-size: 1.4rem;
    font-family: "Playfair Display", serif;
    color: var(--sage-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}


.maps h3 {
    font-family: "Playfair Display", serif;
    color: var(--sage-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.map-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-col {
    width: 45%;
    min-width: 300px;
}

.map-frame {
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* GUESTBOOK SECTION */
.guestbook-form {
    max-width: 600px;
    margin: auto;
    background: #ffffff;
    border: 2px solid rgba(212,175,55,0.35);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.guestbook-form textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.guestbook-entries {
    max-width: 700px;
    margin: auto;
}

.guestbook-entry {
    background: #ffffff;
    border-left: 4px solid var(--gold);
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    text-align: left;
}

.guestbook-entry h4 {
    margin: 0;
    color: var(--sage-dark);
    font-size: 1.2rem;
    font-family: "Playfair Display", serif;
}

.guestbook-entry p {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.5;
}


/* MOBILE */
@media (max-width: 768px) {
    .map-col {
        width: 90%;
    }
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

/* TABLETY – do 1024px */
@media (max-width: 1024px) {

    .hero-content {
        font-size: 2.2rem;
        padding: 0 20px;
    }

    .three-columns {
        gap: 25px;
        padding: 50px 0px;
    }

    .column {
        width: 230px;
    }

    .schedule-box {
        padding: 25px 30px;
    }

    .schedule-item {
        font-size: 1.3rem;
    }
}

/* TELEFONY – do 768px */
@media (max-width: 768px) {

    .hero {
        height: 80vh;
    }

    .hero-content {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 2rem;
    }

    .three-columns {
        flex-direction: column;
        align-items: center;
    }

    .column {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .countdown {
        font-size: 1.6rem;
    }

    .schedule-box {
        padding: 20px 20px;
    }

    .schedule-item {
        font-size: 1.2rem;
    }
}

/* MAŁE TELEFONY – do 480px */
@media (max-width: 480px) {

    .hero-content {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .three-columns {
        flex-direction: column;
        align-items: center;
    }

    .column {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    .column img {
        width: 42px;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .schedule-item {
        font-size: 1.15rem;
    }

    .countdown {
        font-size: 1.4rem;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stats div {
    background: #fff;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    color: var(--sage-dark);
    font-size: 1.1rem;
}

@media (max-width: 600px) {

    form {
        padding: 20px;
        margin: 20px;
    }

    input, select {
        font-size: 1rem;
        padding: 14px;
    }

    input[type="submit"] {
        width: 100%;
        font-size: 1.1rem;
    }

    label {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {

    .admin-wrapper {
        padding: 20px;
        margin: 20px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        font-size: 0.9rem;
        padding: 8px;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-filters input,
    .admin-filters select,
    .admin-filters .button {
        width: 100%;
    }
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(212,175,55,0.4);
}

#lightbox .close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

#lightbox .download {
    position: absolute;
    bottom: 30px;
    padding: 12px 25px;
    background: var(--sage-dark);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

#lightbox .download:hover {
    background: var(--sage);
}
