﻿body {
    margin: 0;
    background: #fff3ee;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #5b3b32;
}

.page {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top, #fffaf6 0%, #fff2ed 45%, #fde8e4 100%);
    min-height: 100vh;
}

.flower {
    position: fixed;
    width: 320px;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

.flower-right {
    right: 0;
    top: 0;
}

.flower-left {
    left: 0;
    bottom: 0;
    transform: rotate(180deg);
}

.header,
.inputArea,
.toolbar,
.fontCard,
.invitationPreview,
.sampleCards,
.footer,
.bottomText {
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
}

.logo {
    width: 300px;
    max-width: 90%;
}

.header h1 {
    color: #b23f65;
    font-size: 52px;
    font-family: Georgia, serif;
    font-weight: normal;
    margin-bottom: 0;
}

.header h2 {
    font-family: 'BaslikFont', cursive;
    font-size: 72px;
    color: #d14b73;
    font-weight: normal;
    margin: 0;
    line-height: 1;
}

.header p {
    font-size: 19px;
    line-height: 1.5;
}

.inputArea {
    max-width: 850px;
    margin: 25px auto;
}

    .inputArea input {
        width: 100%;
        box-sizing: border-box;
        padding: 18px;
        font-size: 28px;
        border-radius: 10px;
        border: 1px solid #e6a8b6;
        outline: none;
        color: #65433a;
        font-family: Georgia, serif;
        font-style: italic;
        background: rgba(255,255,255,.85);
    }

.toolbar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

    .toolbar button,
    .counter {
        padding: 12px 20px;
        border: 1px solid #e3a2af;
        background: white;
        color: #d14b73;
        border-radius: 8px;
        cursor: pointer;
        font-size: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,.06);
    }

        .toolbar button:first-child {
            background: linear-gradient(135deg, #e85b82, #c93d65);
            color: white;
            border: none;
            font-weight: bold;
        }

.counter {
    cursor: default;
    color: #5b3b32;
}

.fontCard {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    background: rgba(255,255,255,.92);
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    align-items: center;
    border: 1px solid #ead1c9;
}

    .fontCard.selected {
        border: 2px solid #d14b73;
        background: #fff8fa;
    }

.siraNo {
    font-size: 34px;
    color: #b23f65;
    text-align: center;
    font-family: Georgia, serif;
}

.fontContent {
    min-width: 0;
}

.fontAdi {
    color: #d14b73;
    font-size: 14px;
    margin-bottom: 10px;
}

    .fontAdi a {
        color: #d14b73;
        text-decoration: none;
        font-weight: bold;
    }

        .fontAdi a:hover {
            text-decoration: underline;
        }

.fontPreviewArea {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fontSizeBtn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #d14b73;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

    .fontSizeBtn:hover {
        background: #b93c63;
    }

.onizleme {
    flex: 1;
    color: #222;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
}

.secimAlan {
    text-align: center;
    color: #c43e63;
}

.secimLabel {
    cursor: pointer;
}

.heart {
    display: block;
    font-size: 34px;
}

.fontSec {
    width: 22px;
    height: 22px;
    margin-top: 8px;
}

.invitationPreview,
.sampleCards {
    text-align: center;
    margin-top: 50px;
}

    .invitationPreview h3,
    .sampleCards h3 {
        color: #bd3f63;
        font-size: 36px;
        font-family: Georgia, serif;
        font-weight: normal;
        margin-bottom: 20px;
    }

.invitationCard {
    width: 380px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border: 4px double #c68a2d;
    text-align: center;
    box-shadow: 0 14px 34px rgba(120,70,50,.20);
    position: relative;
    overflow: hidden;
}

    .invitationCard::before {
        content: "";
        position: absolute;
        top: -35px;
        left: -35px;
        width: 180px;
        height: 180px;
        background: url('images/KirazCicegi.png') no-repeat center;
        background-size: contain;
        opacity: .35;
    }

.dateBox {
    display: inline-flex;
    flex-direction: column;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 25px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.cardNames {
    font-family: 'BaslikFont', cursive;
    font-size: 52px;
    position: relative;
    z-index: 2;
    margin: 25px 0;
}

.cardText {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.cardBottom {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 35px;
}

.sampleGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sampleCard {
    background: rgba(255,255,255,.92);
    border: 1px solid #ead1c9;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(120,70,50,.16);
}

    .sampleCard img {
        width: 100%;
        height: 430px;
        object-fit: contain;
        background: white;
        border-radius: 8px;
    }

.footer {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,.85);
    border-radius: 10px;
    border: 1px solid #d6a048;
    gap: 15px;
}

    .footer a {
        color: #d14b73;
        text-decoration: none;
        font-weight: bold;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.bottomText {
    text-align: center;
    margin: 20px 0;
    color: #d14b73;
    font-size: 28px;
    font-family: Georgia, serif;
    font-style: italic;
}

@media(max-width:768px) {

    .page {
        padding: 15px;
    }

    .flower {
        width: 220px;
        opacity: .22;
    }

    .header h1 {
        font-size: 34px;
    }

    .header h2 {
        font-size: 48px;
    }

    .header p {
        font-size: 15px;
    }

    .inputArea input {
        font-size: 22px;
    }

    .toolbar {
        display: block;
    }

        .toolbar button,
        .counter {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 10px;
            text-align: center;
            display: block;
        }

    .fontCard {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .siraNo {
        margin-bottom: 8px;
    }

    .fontPreviewArea {
        flex-direction: column;
    }

    .fontSizeBtn {
        width: 42px;
        height: 42px;
    }

    .secimAlan {
        margin-top: 14px;
    }

    .invitationCard {
        width: auto;
        margin: 25px auto;
    }

    .cardNames {
        font-size: 42px;
    }

    .sampleGrid {
        grid-template-columns: 1fr;
    }

    .sampleCard img {
        height: auto;
        max-height: 560px;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .bottomText {
        font-size: 22px;
    }

    .topMenu {
        position: relative;
        z-index: 3;
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-bottom: 15px;
    }

        .topMenu a {
            background: rgba(255,255,255,.85);
            color: #d14b73;
            text-decoration: none;
            padding: 10px 18px;
            border-radius: 25px;
            border: 1px solid #e3a2af;
            font-weight: bold;
        }

            .topMenu a:hover {
                background: #d14b73;
                color: white;
            }
}
