* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg,
            #0d3b2e 0%,
            #1a5c47 30%,
            #2d7a5c 60%,
            #3d9970 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Arka plan daÄŸ silueti */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background:
        linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 41%, transparent 41%),
        linear-gradient(225deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 41%, transparent 41%);
    background-size: 100px 100%;
    opacity: 0.3;
    pointer-events: none;
}

/* SÃ¼zÃ¼len yapraklar */
.tea-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.tea-leaves span {
    position: absolute;
    top: -50px;
    font-size: 24px;
    animation: fallLeaf 10s linear infinite;
    opacity: 0.6;
}

.tea-leaves span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.tea-leaves span:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
}

.tea-leaves span:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
}

.tea-leaves span:nth-child(4) {
    left: 55%;
    animation-delay: 1s;
}

.tea-leaves span:nth-child(5) {
    left: 70%;
    animation-delay: 3s;
}

.tea-leaves span:nth-child(6) {
    left: 85%;
    animation-delay: 5s;
}

.tea-leaves span:nth-child(7) {
    left: 15%;
    animation-delay: 7s;
}

.tea-leaves span:nth-child(8) {
    left: 60%;
    animation-delay: 6s;
}

@keyframes fallLeaf {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

h1 {
    color: #a8e6cf;
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle,
.message {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 25px;
}

.question {
    color: #d4f5e9;
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #2d7a5c 0%, #1a5c47 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(45, 122, 92, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 122, 92, 0.5);
    background: linear-gradient(135deg, #3d9970 0%, #2d7a5c 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.input-field {
    width: 100%;
    padding: 16px 22px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-field:focus {
    outline: none;
    border-color: #a8e6cf;
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.error-text {
    color: #ffb3b3;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 25px;
    font-weight: 600;
}

/* BaÅŸarÄ± KartÄ± */
.success-card {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.2) 0%, rgba(45, 122, 92, 0.2) 100%);
    border: 1px solid rgba(168, 230, 207, 0.4);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #a8e6cf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* HoÅŸgeldiniz KartÄ± */
.welcome-card {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15) 0%, rgba(45, 122, 92, 0.2) 100%);
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.welcome-icon {
    animation: steam 2s ease infinite;
}

@keyframes steam {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.tea-cups {
    font-size: 1.8rem;
    margin: 20px 0;
    letter-spacing: 5px;
}

/* Ana Soru KartÄ± */
.main-card {
    max-width: 550px;
}

.choice-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-yes {
    background: linear-gradient(135deg, #3d9970 0%, #2d7a5c 100%);
    color: white;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(61, 153, 112, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: white;
    min-width: 140px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.btn-yes:hover {
    box-shadow: 0 12px 30px rgba(61, 153, 112, 0.5);
}

.btn-no:hover {
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.5);
}

.click-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Tam Ekran Evet */
.fullscreen-yes {
    background: linear-gradient(135deg, #ff6b35 0%, #f72c25 100%);
}

.yes-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: yesAppear 0.5s ease;
}

@keyframes yesAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.yes-overlay h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fireGlow 0.5s ease infinite alternate;
}

@keyframes fireGlow {
    from {
        text-shadow: 0 0 30px rgba(255, 200, 0, 0.8);
    }

    to {
        text-shadow: 0 0 60px rgba(255, 100, 0, 1);
    }
}

.yes-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: 20px;
}

.warning-text {
    color: #ffcc00;
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 700;
    min-height: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Final Kart */
.final-card {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15) 0%, rgba(45, 122, 92, 0.2) 100%);
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.btn-time {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 22px;
    font-size: 1rem;
}

.btn-time:hover {
    background: linear-gradient(135deg, #2d7a5c 0%, #1a5c47 100%);
    border-color: transparent;
    transform: scale(1.08);
}

.selected-time {
    color: #a8e6cf;
    font-size: 1.1rem;
    margin-top: 20px;
    font-weight: 700;
}

/* Onay KartÄ± */
.confirmation-card {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15) 0%, rgba(45, 122, 92, 0.25) 100%);
    border: 1px solid rgba(168, 230, 207, 0.4);
}

.horon-icon {
    font-size: 80px;
    animation: horonDance 1s ease infinite;
}

@keyframes horonDance {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.final-message {
    color: #d4f5e9;
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 600;
}

.mountain-decoration {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mountain-decoration span {
    font-size: 2rem;
    animation: mountainFloat 3s ease infinite;
}

.mountain-decoration span:nth-child(1) {
    animation-delay: 0s;
}

.mountain-decoration span:nth-child(2) {
    animation-delay: 0.3s;
}

.mountain-decoration span:nth-child(3) {
    animation-delay: 0.6s;
}

.mountain-decoration span:nth-child(4) {
    animation-delay: 0.9s;
}

.mountain-decoration span:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes mountainFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .no-overlay h1 {
        font-size: 4rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-yes,
    .btn-no {
        width: 180px;
    }

    .icon {
        font-size: 50px;
    }
}
/* ------------------------------------- */
/* YENÝ DASHBOARD STÝLLERÝ (Admin/User)  */
/* ------------------------------------- */

.dashboard-card {
    max-width: 800px !important;
    text-align: left !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.tab-btn.active {
    background: rgba(45, 122, 92, 0.8);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

/* User Dashboard Layout */
.dashboard-container {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.header-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1; /* Kalan alaný kapla */
    overflow: hidden; /* Scroll içeride olsun */
}

/* Panel Stilleri */
.panel {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    color: #a8e6cf;
    font-size: 1.2rem;
}

.badge {
    background: #eb4d4b;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}

.list-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Liste Elemanlarý */
.item-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-2px);
}

.item-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2d7a5c;
}

.item-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.item-date {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.item-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    white-space: nowrap;
}

.badge-acil {
    background: #ff7675;
    color: white;
}

.badge-sevgi {
    background: #fd79a8;
    color: white;
}

.badge-normal {
    background: #badc58;
    color: #2d3436;
}

.apt-card .item-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background: #e3f2fd;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin-top: 40px;
    font-style: italic;
}

.btn-text {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-text:hover {
    color: #a8e6cf;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.status-message {
    margin-top: 15px;
    font-weight: 700;
    min-height: 24px;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        height: auto;
        min-height: 80vh;
        margin-top: 20px;
    }
}


/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    background: #f1f2f6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-action.check {
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.btn-action.check:hover {
    background: #2ecc71;
    color: white;
}

.btn-action.cross {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.btn-action.cross:hover {
    background: #e74c3c;
    color: white;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
}

.status-text.accepted { color: #2ecc71; }
.status-text.rejected { color: #e74c3c; }

/* Status Badges */
.status-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 10px;
}

.status-badge.pending { background: #f1c40f; color: #333; }
.status-badge.accepted { background: #2ecc71; color: white; }
.status-badge.rejected { background: #e74c3c; color: white; }

.reject-reason {
    font-size: 0.9rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-top: 5px;
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* JS ile flex yapýlacak */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-card p {
    color: #666;
    margin-bottom: 15px;
}

.modal-card textarea {
    color: #333;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.modal-card textarea:focus {
    background: white;
    border-color: #2d7a5c;
    color: #333;
}

.modal-card .button-group {
    margin-top: 15px;
}

.modal-card .btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
    border: none;
}

.modal-card .btn-secondary:hover {
    background: #bdc3c7;
}


/* ------------------------------- */

/* ------------------------------- */
/* SINEMATIK INTRO STYLES          */
/* ------------------------------- */

.cinematic-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fallback background */
    background: #000;
    z-index: 9999;
    display: none; /* JS ile flex */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Arka Plan Resmi */
.cinematic-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('intro-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.8; 
    z-index: 0;
    /* Hafif blur, fotoðrafa odaklanmak için azaltýldý veya kaldýrýldý */
    filter: blur(2px) brightness(0.6); 
    animation: slowZoom 20s linear infinite;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cinematic-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    opacity: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4), 0 0 40px rgba(255,255,255,0.2);
    z-index: 2; /* Resmin üzerinde */
    position: relative;
    max-width: 80%;
}

/* Animations */
.anim-reveal {
    animation: reveal 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes reveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
        letter-spacing: 2px;
    }
    20% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
        letter-spacing: 4px;
    }
    80% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0px);
        letter-spacing: 5px;
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(10px);
        letter-spacing: 8px;
    }
}

@media (max-width: 600px) {
    .cinematic-text {
        font-size: 2rem;
    }
}


/* ------------------------------- */
/* CREATOR INTRO STYLES            */
/* ------------------------------- */

.creator-container::before {
    background: url('creator-bg.jpg') no-repeat center center/cover !important;
    opacity: 0.8 !important; /* Fotoðraf biraz daha net olsun */
    filter: blur(0px) brightness(0.7) !important;
    animation: none !important; /* Sabit durabilir veya yavaþ zoom */
}

.creator-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 90%;
}

.creator-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fadeTextIn 3s ease forwards;
}

@keyframes fadeTextIn {
    to { opacity: 1; }
}

.fade-in-btn {
    opacity: 0;
    animation: fadeBtnIn 2s ease forwards;
    animation-delay: 3s; /* Yazýdan sonra gelsin */
    margin-top: 30px;
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4) !important;
    font-size: 1.2rem !important;
}

.fade-in-btn:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: scale(1.05);
}


.creator-container {
    cursor: pointer;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}


/* ------------------------------- */

/* ------------------------------- */
/* CLOUD SECTION STYLES (FINAL)    */
/* ------------------------------- */

.cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 9999;
    
    /* Scroll Settings */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Üstten baþla */
    
    /* Spacing */
    padding-top: 80px;
    padding-bottom: 150px; /* Buton için yer */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.cloud-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cloud-item {
    background: rgba(255, 255, 255, 0.05); /* Daha hafif transparan */
    backdrop-filter: blur(12px);
    border-radius: 60px; /* Daha yuvarlak */
    padding: 25px 30px;
    color: #fff;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.5;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatCloud 4s ease-in-out infinite;
    position: relative;
}

/* Animasyon Varyasyonlarý */
.cloud-item:nth-child(2n) { animation-delay: 2s; }
.cloud-item:nth-child(3n) { animation-delay: 1s; }

.cloud-item:hover {
    transform: translateY(-10px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* Fixed Button */
#cloudSection .btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10000 !important;
    width: auto !important;
    min-width: 200px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    background: #e74c3c !important; 
    border: 2px solid rgba(255,255,255,0.2) !important;
}

@media (max-width: 600px) {
    .cloud-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .cloud-container {
        padding-top: 60px; /* Mobilde biraz daha az üst boþluk */
    }
}


/* Answer Overlay Styles */
.answer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001; /* En üstte */
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px;
    box-sizing: border-box;
}

.answer-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    /* Animasyon baþlangýç durumu */
    opacity: 0; 
    transform: translateY(30px);
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.answer-visible {
    animation: textFadeUp 1.5s ease forwards;
}

@keyframes textFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* Question 2 FX */
@keyframes strobe {
    0%, 100% { background-color: #000; }
    50% { background-color: #fff; }
}

@keyframes panicShake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.fx-strobe {
    animation: strobe 0.2s infinite;
}

.fx-panic {
    animation: panicShake 0.1s infinite !important;
}

.huge-question-mark {
    font-size: 15rem;
    color: red;
    font-weight: bold;
    animation: panicShake 0.2s infinite;
}

.q2-final-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.q2-image {
    max-width: 80%;
    max-height: 50vh;
    border: 5px solid #fff;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: reveal 0.5s ease;
}

.q2-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    background: rgba(255, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    text-transform: uppercase;
    animation: pulse 1s infinite;
}


/* Strobe Mobile Fix */
@keyframes strobe {
    0%, 100% { background-color: #000 !important; }
    50% { background-color: #fff !important; }
}

.fx-strobe {
    animation: strobe 0.1s infinite !important; /* Daha hýzlý */
    backdrop-filter: none !important; /* Performans için */
    background: #000 !important;
    z-index: 99999 !important;
}

.fx-panic {
    backdrop-filter: none !important;
}


/* ------------------------------- */
/* CHAT SYSTEM STYLES              */
/* ------------------------------- */

.chat-window {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 400px; /* Sabit yükseklik */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar Style for Chat */
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 5px; }

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Giden Mesaj (Sað) */
.msg-out {
    align-self: flex-end;
    background: linear-gradient(135deg, #00b09b, #96c93d); /* Rize Yeþili Tonlarý */
    color: white;
    border-bottom-right-radius: 2px;
}

/* Gelen Mesaj (Sol) */
.msg-in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    color: #eee;
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
}

.chat-input-area input:focus {
    background: rgba(255,255,255,0.2);
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}


/* DASHBOARD SCROLL FIX */
#pageUserDashboard, #pageAdminDashboard {
    display: none; /* Default hidden */
    align-items: flex-start !important; /* Start from top */
    overflow-y: auto !important; /* Enable Scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on mobile */
    height: 100vh !important;
    padding-top: 20px;
    padding-bottom: 50px;
}

#pageUserDashboard.active, #pageAdminDashboard.active {
    display: flex !important;
}

/* Dashboard Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    /* Chat panelini tam genislik yap masaustunde */
    .grid-layout .panel:last-child {
        grid-column: 1 / -1;
    }
}

