/* =========================================
   1. FONTS & CONFIG
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
    /* Renk Paleti */
    --primary-color: #212842;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;

    /* Gradientler */
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    --border-radius: 24px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Animasyon */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   2. NAVBAR & MODAL (ORTAK)
   ========================================= */
/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__logo img {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 35%;
    padding: 2px;
    object-fit: contain;
}

.navbar__text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.brand-slogan {
    color: #94a3b8;
    font-size: 0.8rem;
}

.navbar__menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    .navbar__menu,
    .navbar__action {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-wide-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-wide-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-split-container {
    display: flex;
    min-height: 550px;
}

.modal-left-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.form-header {
    margin-bottom: 35px;
}

.mini-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.1;
}

.form-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.aesthetic-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-wrapper {
    position: relative;
    height: 50px;
    margin-top: 10px;
}

.input-wrapper:has(textarea) {
    height: auto;
}

.aesthetic-form input,
.aesthetic-form textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-dark);
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.aesthetic-form textarea {
    resize: none;
    min-height: 60px;
}

.aesthetic-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
}

.aesthetic-form input:focus~label,
.aesthetic-form input:not(:placeholder-shown)~label,
.aesthetic-form textarea:focus~label,
.aesthetic-form textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.4s ease;
}

.aesthetic-form input:focus~.input-highlight,
.aesthetic-form textarea:focus~.input-highlight {
    width: 100%;
}

.cyber-submit-v2 {
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cyber-submit-v2:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modal-right-side {
    flex: 1;
    position: relative;
    background-color: var(--primary-color);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.side-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.image-text-content {
    position: relative;
    z-index: 3;
    color: #fff;
    width: 100%;
}

.image-text-content h4 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .modal-split-container {
        flex-direction: column-reverse;
    }

    .modal-right-side {
        height: 200px;
        padding: 20px;
    }

    .modal-left-side {
        padding: 30px 20px;
    }

    .modal-wide-wrapper {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.4);
    }
}

/* =========================================
   3. YENİ CONTENT LAYOUT (NEW INNOVATIVE STYLE)
   ========================================= */
.content-wrapper {
    padding: 40px 0 80px;
}

/* Breadcrumb */
.top-nav {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.back-link {
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.divider {
    color: #cbd5e1;
}

.current-crumb {
    color: var(--primary-color);
    font-weight: 600;
}

/* GRID LAYOUT (SOL: İçerik, SAĞ: Sidebar) */
.event-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Sol geniş, sağ dar */
    gap: 40px;
    align-items: start;
}

/* --- SOL KOLON (ANA İÇERİK) --- */
.main-content-col {
    background: transparent;
}

.main-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text-anim {
    background: linear-gradient(270deg, #6366f1, #ec4899, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

.tags-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-purple {
    background: #8b5cf6;
}

.tag-blue {
    background: #3b82f6;
}

.tag-green {
    background: #10b981;
}

.mobile-event-img {
    display: none;
    /* Masaüstünde sidebar'da resim var, bunu gizle */
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.mobile-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rich-text {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rich-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Özel Listeler */
.info-box {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.info-box .section-heading {
    margin-top: 0;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-color);
}

.dot-list {
    list-style: none;
}

.dot-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid #e2e8f0;
}

.dot-list li strong {
    color: var(--primary-color);
}

/* --- SAĞ KOLON (SIDEBAR) --- */
.sidebar-col {
    position: sticky;
    top: 100px;
    /* Navbar'ın altında yapışık kalır */
}

.event-sidebar-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.sidebar-img {
    height: 325px;
    overflow: hidden;
}

.sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.event-sidebar-card:hover .sidebar-img img {
    transform: scale(1.05);
}

.sidebar-content {
    padding: 30px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-wrap {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
}

.info-text .value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.info-text .value.deadline {
    color: #ef4444;
}

.separator {
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
}

.btn-sidebar-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.btn-glow {
    background: var(--gradient-purple);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.btn-sidebar-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    transition: 0.3s;
}

.btn-sidebar-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =========================================
   4. FOOTER (ORTAK)
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .event-grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-col {
        position: static;
        margin-bottom: 40px;
        order: -1;
        /* Mobilde sidebar üstte görünsün */
    }

    .mobile-event-img {
        display: block;
    }

    /* Mobilde ana içerik içindeki resmi göster */
    .sidebar-img {
        display: none;
    }

    /* Sidebar'daki resmi gizle */
    .event-sidebar-card {
        display: flex;
        flex-direction: column;
    }

    .main-title {
        font-size: 2.2rem;
    }
}