/*
==================================================
  DilDünyası | Yabancı Dil Öğrenim Platformu
  style.css
==================================================

  TABLE OF CONTENTS
  ------------------------------------------------
  1.  VARIABLES & GLOBAL STYLES
  2.  TYPOGRAPHY
  3.  HELPER CLASSES
  4.  NAVIGATION & HEADER
  5.  FOOTER
  6.  GENERAL COMPONENT STYLES
        - Buttons
        - Cards
        - Forms
        - Accordion
        - Timeline
        - Resource Links
  7.  SECTION-SPECIFIC STYLES
        - Hero
        - Contact Form Wrapper
  8.  PAGE-SPECIFIC STYLES
        - Static Pages (Privacy, Terms)
        - Success Page
  9.  ANIMATIONS & RESPONSIVE STYLES
------------------------------------------------
*/

/* 1. VARIABLES & GLOBAL STYLES
------------------------------------------------ */
:root {
    /* Color Palette (Monochrome with a Primary Accent) */
    --color-background: #1a1a1a;
    --color-surface: #252525;
    --color-background-light: #f4f4f4;
    --color-primary: #485fc7; /* Bulma's Primary */
    --color-primary-light: #5e66d4;
    --color-primary-dark: #3a4baf;
    --color-text: #e0e0e0;
    --color-text-dark: #363636;
    --color-border: #444;

    /* Typography */
    --font-primary: 'Archivo Black', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* UI Elements */
    --border-radius-smooth: 12px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-main: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background);
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section {
    padding: 5rem 1.5rem;
}

.has-background-light {
    background-color: var(--color-background-light) !important;
}

.has-background-light .title,
.has-background-light .subtitle,
.has-background-light .content,
.has-background-light .label {
    color: var(--color-text-dark);
}

/* 2. TYPOGRAPHY
------------------------------------------------ */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
}

.title.has-text-dark, .subtitle.has-text-dark {
    color: var(--color-text-dark) !important;
}

.title {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

a {
    color: var(--color-primary-light);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-text);
}

/* 3. HELPER CLASSES
------------------------------------------------ */
.is-biomorphic {
    border-radius: var(--border-radius-smooth);
    overflow: hidden;
}

/* 4. NAVIGATION & HEADER
------------------------------------------------ */
.navbar.is-fixed-top {
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
    color: var(--color-text);
    font-weight: bold;
    transition: var(--transition-fast);
}

.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: var(--color-surface) !important;
    color: var(--color-primary-light) !important;
}

.navbar-burger {
    color: var(--color-text);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: #1c1c1c;
        box-shadow: var(--shadow-soft);
    }
}


/* 5. FOOTER
------------------------------------------------ */
.footer {
    background-color: #0a0a0a;
    padding: 3rem 1.5rem 2rem;
}

.footer .title {
    color: var(--color-text);
}

.footer ul {
    list-style: none;
    margin: 0;
}

.footer a {
    color: var(--color-text);
    padding: 0.25rem 0;
    display: inline-block;
}

.footer a:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

/* 6. GENERAL COMPONENT STYLES
------------------------------------------------ */

/* -- Buttons -- */
.button, button, input[type='submit'] {
    font-family: var(--font-primary);
    border-radius: 8px;
    border: none;
    transition: var(--transition-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.button.is-primary {
    background-color: var(--color-primary);
}

.button:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.button.is-primary:hover {
     background-color: var(--color-primary-light);
}

/* -- Cards -- */
.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-main);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card .card-image {
    border-radius: var(--border-radius-smooth) var(--border-radius-smooth) 0 0;
    overflow: hidden;
    height: 220px;
    margin: 0 auto;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    color: var(--color-text);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card .card-content .title, .card .card-content .content {
    color: var(--color-text);
}

.has-background-light .card {
    background-color: #ffffff;
    border-color: #dbdbdb;
}

.has-background-light .card .card-content .title,
.has-background-light .card .card-content .content {
    color: var(--color-text-dark);
}

/* -- Forms -- */
.input, .textarea {
    background-color: #2c2c2c;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 8px;
    box-shadow: var(--shadow-inset);
    transition: var(--transition-fast);
}

.input::placeholder, .textarea::placeholder {
    color: #888;
}

.input:focus, .textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.125em rgba(72, 95, 199, 0.25);
    background-color: #333;
}

.label {
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-weight: bold;
}

/* -- Accordion (Webinars) -- */
.accordion-item {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-smooth);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    list-style: none; /* remove marker */
}
.accordion-header::-webkit-details-marker { display: none; }

.accordion-header:hover {
    background-color: #333;
}

.accordion-title {
    font-size: 1.2rem;
    color: var(--color-text);
}

.accordion-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-primary-light);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

/* -- Timeline (Innovation) -- */
.timeline .timeline-item .timeline-marker {
    background-color: var(--color-background);
    border: 3px solid var(--color-primary);
}

.timeline .timeline-item.is-warning .timeline-marker {
    border-color: #ffdd57;
}

.timeline .timeline-item.is-danger .timeline-marker {
    border-color: #ff3860;
}

.timeline .timeline-content {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-smooth);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.timeline .timeline-content .heading {
    color: var(--color-primary-light);
    font-family: var(--font-primary);
}

.timeline .timeline-header {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

/* -- Resource Links -- */
.resource-card {
    background-color: var(--color-surface);
}

.resource-card .title a {
    color: var(--color-primary-light);
}

.resource-card .title a:hover {
    text-decoration: underline;
    color: var(--color-text);
}

/* 7. SECTION-SPECIFIC STYLES
------------------------------------------------ */

/* -- Hero Section -- */
.hero#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero#hero .title.has-text-white, .hero#hero .subtitle.has-text-white {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* -- Contact Form Wrapper -- */
.contact-form-wrapper {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(25, 25, 25, 0.95));
    padding: 2.5rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

@media screen and (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* 8. PAGE-SPECIFIC STYLES
------------------------------------------------ */

/* -- Static Pages (Privacy, Terms, About, Contacts) -- */
.static-page-container {
    padding: 8rem 1.5rem 4rem 1.5rem;
    min-height: 90vh;
}

.static-page-container h1.title {
    margin-bottom: 2rem;
}

.static-page-container .content h2 {
    margin-top: 2rem;
    color: var(--color-primary-light);
}

.static-page-container .content p, 
.static-page-container .content li {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* -- Success Page -- */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-box {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-soft);
    max-width: 600px;
}

.success-box .icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* 9. ANIMATIONS & RESPONSIVE STYLES
------------------------------------------------ */
/* AOS animations are handled by the library */
[data-aos] {
    transition-property: transform, opacity;
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .title.is-1 {
        font-size: 2.5rem;
    }

    .title.is-2 {
        font-size: 2rem;
    }
}