/* =========================================================
   SEAACADEMYIK EGITIM PLATFORMU
   GLOBAL STYLE
========================================================= */

/* ------------------------------
   ROOT
------------------------------ */
:root {
    --primary: #0d2d62;
    --primary-dark: #081d40;
    --secondary: #f58220;
    --secondary-dark: #d96d10;
    --white: #ffffff;
    --black: #101010;
    --text: #253147;
    --text-light: #5f6b7a;
    --border: #dfe5ec;
    --soft-border: #edf1f5;
    --bg: #f7f9fc;
    --bg-soft: #f2f5f9;
    --success: #1f9d55;
    --danger: #d93025;
    --shadow-sm: 0 6px 18px rgba(13, 45, 98, 0.06);
    --shadow-md: 0 14px 40px rgba(13, 45, 98, 0.10);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1280px;
    --transition: all 0.25s ease;
}

/* ------------------------------
   RESET
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

/* ------------------------------
   LAYOUT
------------------------------ */
.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

main {
    min-height: 60vh;
}

section {
    position: relative;
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 14px;
}

h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

p {
    color: var(--text-light);
    margin-bottom: 14px;
}

.section-mini-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading.center {
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-link {
    color: var(--primary);
    font-weight: 700;
}

.section-link:hover {
    color: var(--secondary);
}

/* ------------------------------
   BUTTONS
------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* ------------------------------
   FORMS
------------------------------ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 45, 98, 0.08);
}

/* ------------------------------
   TOPBAR
------------------------------ */
.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar a:hover {
    color: var(--secondary);
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(13, 45, 98, 0.05);
}

.main-header {
    background: var(--white);
}

.header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-list a {
    position: relative;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.header-cart:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 10px;
    background: var(--primary-dark);
}

/* ------------------------------
   HERO / COMMON BLOCKS
------------------------------ */
.hero-section,
.featured-section,
.mode-section,
.category-section,
.schedule-section,
.why-section,
.cta-section,
.search-section {
    padding: 72px 0;
}

.card,
.training-card,
.mode-card,
.category-card,
.search-box,
.schedule-item,
.cta-box {
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ------------------------------
   TRAINING CARD BASE
------------------------------ */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.training-card {
    overflow: hidden;
}

.training-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}

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

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

.training-card-body {
    padding: 22px;
}

.training-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.training-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.training-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.training-card h3 a:hover {
    color: var(--secondary);
}

.training-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
    color: var(--text);
    font-size: 14px;
}

.training-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ------------------------------
   CATEGORY
------------------------------ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--soft-border);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    font-weight: 700;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 130, 32, 0.32);
    color: var(--secondary);
}

/* ------------------------------
   MODE
------------------------------ */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mode-card {
    padding: 28px;
}

.mode-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    font-size: 28px;
    margin-bottom: 18px;
}

/* ------------------------------
   SCHEDULE
------------------------------ */
.schedule-list {
    display: grid;
    gap: 16px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
}

.schedule-date strong {
    color: var(--primary-dark);
    font-size: 17px;
}

.schedule-content h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

/* ------------------------------
   CTA
------------------------------ */
.cta-box {
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0d2d62 0%, #163d81 100%);
    border: none;
    box-shadow: var(--shadow-md);
}

.cta-box h2,
.cta-box p,
.cta-box .section-mini-title {
    color: var(--white);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-box .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
}

.cta-box .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
    background: #0a1c3c;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 80px;
}

.footer-top {
    padding: 64px 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 18px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact-list a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact-list a:hover {
    color: var(--secondary);
}

.footer-contact-list {
    display: grid;
    gap: 10px;
}

.footer-middle {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-middle-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.footer-box {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-box strong {
    display: block;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-box span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.footer-bottom {
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* ------------------------------
   ALERT / FLASH
------------------------------ */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.alert-success {
    background: rgba(31, 157, 85, 0.10);
    color: var(--success);
    border: 1px solid rgba(31, 157, 85, 0.16);
}

.alert-danger {
    background: rgba(217, 48, 37, 0.08);
    color: var(--danger);
    border: 1px solid rgba(217, 48, 37, 0.16);
}

/* ------------------------------
   UTILITY
------------------------------ */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.hidden {
    display: none !important;
}