/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #050510;
    /* Koyu Lacivert/Siyah */
    --text-color: #e0e0e0;
    --accent-color: #ffd700;
    /* Altın Sarısı */
    --timeline-line: #ffffff33;
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Stars Animation */
.star {
    position: fixed;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -3;
}

/* Login Screen */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 16, 0.6);
    /* Hafif transparan arka plan */
    backdrop-filter: blur(3px);
    transition: opacity 1s ease, visibility 1s ease;
}

#login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Altın çerçeve */
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
    /* Altın parıltı */
    max-width: 90%;
    width: 450px;
}

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

input {
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    text-align: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

button {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--accent-color);
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

#error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    animation: shake 0.5s;
}

.hidden {
    display: none;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Main Content */
#main-content {
    padding-bottom: 100px;
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

#main-content.visible {
    opacity: 1;
}

.main-header {
    text-align: center;
    padding: 4rem 1rem;
    animation: fadeInDown 1.5s ease-out;
}

.main-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.milestone {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    /* Hidden initially for scroll animation */
    transition: all 0.8s ease-out;
}

.milestone.visible {
    opacity: 1;
}

.milestone.left {
    left: 0;
    transform: translateX(-50px);
}

.milestone.right {
    left: 50%;
    transform: translateX(50px);
}

.milestone.visible.left,
.milestone.visible.right {
    transform: translateX(0);
}

.milestone::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-color);
}

.milestone.right::after {
    left: -10px;
}

/* Link Styles for Timeline Cards */
.content-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.content {
    padding: 20px 30px;
    background: var(--card-bg);
    position: relative;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.content-link:hover .content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: var(--accent-color);
}

.content h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.content-link:hover .img-container img {
    transform: scale(1.1);
}

.content p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.click-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-style: italic;
    opacity: 0.8;
}

/* Sticky Heart */
#sticky-heart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 90;
    animation: heartbeat 1.5s infinite;
    transition: transform 0.3s;
}

#sticky-heart:hover {
    transform: scale(1.2);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
    max-width: 90%;
    width: 400px;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.heart-beat {
    font-size: 4rem;
    margin-top: 1rem;
    animation: heartbeat 1s infinite;
}

/* --- GALLERY PAGE STYLES --- */
.gallery-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.gallery-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.caption {
    padding: 10px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .milestone {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .milestone.left,
    .milestone.right {
        left: 0;
    }

    .milestone.left::after,
    .milestone.right::after {
        left: 21px;
    }

    .milestone.right {
        left: 0%;
    }

    .main-header h1 {
        font-size: 2.5rem;
    }

    /* Gallery Responsive */
    .gallery-grid {
        column-count: 1;
    }

    .gallery-header h1 {
        font-size: 2rem;
        margin-top: 3rem;
        /* Space for back button */
    }

    .back-btn {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* --- Music Control --- */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-icon {
    font-size: 24px;
    transition: transform 0.5s ease;
}

.music-btn.playing .music-icon {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Real-Time Counter --- */
#counter-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.counter-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#counter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.time-unit:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.time-unit .label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 600px) {
    #counter {
        gap: 1rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 1rem;
    }

    .time-unit span {
        font-size: 1.8rem;
    }

    .counter-title {
        font-size: 2rem;
    }

    .milestone {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .milestone.left,
    .milestone.right {
        left: 0;
    }

    .milestone.left::after,
    .milestone.right::after {
        left: 21px;
    }

    .milestone.right {
        left: 0%;
    }

    .main-header h1 {
        font-size: 2.5rem;
    }

    /* Gallery Responsive */
    .gallery-grid {
        column-count: 1;
    }

    .gallery-header h1 {
        font-size: 2rem;
        margin-top: 3rem;
        /* Space for back button */
    }

    .back-btn {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* --- Music Control --- */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-icon {
    font-size: 24px;
    transition: transform 0.5s ease;
}

.music-btn.playing .music-icon {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Real-Time Counter --- */
#counter-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.counter-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#counter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.time-unit:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.time-unit .label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 600px) {
    #counter {
        gap: 1rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 1rem;
    }

    .time-unit span {
        font-size: 1.8rem;
    }

    .counter-title {
        font-size: 2rem;
    }
}

/* --- Typewriter Effect --- */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--accent-color);
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Love Galaxy (Advent Calendar) --- */
#love-galaxy {
    padding: 4rem 1rem;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #050510 100%);
    min-height: 100vh;
    animation: fadeIn 1s ease-out;
}

.galaxy-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.galaxy-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.galaxy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.planet-card {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.planet-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.planet-card.flipped .planet-inner {
    transform: rotateY(180deg);
}

.planet-front,
.planet-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.planet-front {
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00, #8b0000);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.planet-card:hover .planet-front {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.6);
}

.planet-back {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #333;
    transform: rotateY(180deg);
    border-radius: 20px;
    /* Kart şekli */
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
}

.coupon-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.coupon-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.galaxy-title {
    font-size: 2.5rem;
}

/* Galaxy Responsive */
/* Galaxy Responsive */
@media screen and (max-width: 800px) {
    .galaxy-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .galaxy-title {
        font-size: 2rem;
    }

    .planet-front {
        font-size: 1.2rem;
        /* Smaller font on front */
    }

    .planet-back {
        padding: 0.5rem;
        /* Less padding */
    }

    .coupon-title {
        font-size: 1rem;
        /* Smaller title */
        margin-bottom: 0.2rem;
    }

    .coupon-icon {
        font-size: 2rem;
        /* Smaller icon */
        margin-bottom: 0.2rem;
    }

    .coupon-text {
        font-size: 0.8rem;
        /* Smaller text */
        line-height: 1.2;
    }
}

@media screen and (max-width: 400px) {
    .galaxy-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .planet-front div:first-child {
        font-size: 2rem !important;
        /* Planet icon size */
    }
}