/* ========================================
   TYA - Türkiye Yarış Akademisi
   Design System: Kinetic Precision
   ======================================== */

/* Clipped-Corner Buttons (original) */
.clipped-button {
    clip-path: polygon(0% 0%, 92% 0%, 100% 25%, 100% 100%, 8% 100%, 0% 75%);
}

/* Clipped TR-BL — Reference Design (larger 15px cut) */
.clipped-tr-bl {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* Clipped Button — Reference Design */
.clipped-btn {
    clip-path: polygon(0% 0%, 92% 0%, 100% 15%, 100% 100%, 8% 100%, 0% 85%);
}

/* Clipped Button Large */
.clipped-btn-lg {
    clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
}

/* Clipped Card — bottom-right corner cut */
.clipped-card {
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 92% 100%, 0% 100%);
}

/* Kinetic Border — left red accent for quote blocks */
.kinetic-border {
    border-left: 2px solid #EE3F2C;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 253, 250, 0.62);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(23, 20, 17, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(23, 20, 17, 0.04), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

/* Glass Nav */
.glass-nav {
    background: rgba(255, 253, 250, 0.72);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Hero Video Overlay */
.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(245, 241, 235, 0.28) 0%, rgba(245, 241, 235, 0.82) 100%);
    pointer-events: none;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Text Glow on Hover */
.text-glow:hover {
    text-shadow: 0 0 8px rgba(238, 63, 44, 0.6);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(255, 253, 250, 0.94) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
}

/* Navbar Hidden State (hide on scroll down) */
#main-nav.nav-hidden {
    transform: translateY(calc(-100% - 1px));
}

/* Ghost Border */
.ghost-border {
    border: 1px solid rgba(149, 132, 116, 0.25);
}

/* No underline override */
.no-underline {
    text-decoration: none !important;
}

/* Global Typography Scale — improved baseline readability */
html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

@media (min-width: 1600px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Selection color */
::selection {
    background: #ff8f80;
    color: #171411;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f1eb;
}

::-webkit-scrollbar-thumb {
    background: #c9bbad;
}

::-webkit-scrollbar-thumb:hover {
    background: #958474;
}

/* Page Section Base */
.page-section {
    padding: 6rem 2rem;
}

@media (min-width: 768px) {
    .page-section {
        padding: 8rem 4rem;
    }
}

/* Feature Card Left Accent */
.card-accent-left {
    border-left: 2px solid #EE3F2C;
}

/* Performance Numbers */
.perf-number {
    color: #d93624;
    font-variant-numeric: tabular-nums;
}

/* Hero Title — viewport-based so it scales with screen, not root font-size */
.hero-title {
    font-size: clamp(36px, 5.5vw, 88px);
}

/* Video Card — büyük clipped-corner (butonla aynı açı, daha derin kesim) */
.video-card-clip {
    clip-path: polygon(0% 0%, 94% 0%, 100% 6%, 100% 100%, 6% 100%, 0% 94%);
}

.video-card-clip video {
    clip-path: polygon(0% 0%, 94% 0%, 100% 6%, 100% 100%, 6% 100%, 0% 94%);
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-bottom-color: #EE3F2C !important;
    box-shadow: none !important;
}

/* Editorial CTA panel for Team page */
.liquid-glass {
    background: linear-gradient(45deg, rgba(238, 63, 44, 0.14), rgba(255, 85, 64, 0.08));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(23, 20, 17, 0.1);
    box-shadow: 0 40px 70px -20px rgba(23, 20, 17, 0.22);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle, rgba(238, 63, 44, 0.18) 0%, transparent 68%);
    animation: liquid-rotate 14s linear infinite;
    pointer-events: none;
}

@keyframes liquid-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Outline headline echo used in Team hero */
.hero-text-outline {
    -webkit-text-stroke: 1px rgba(23, 20, 17, 0.22);
    color: transparent;
}

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Full-card clickable interactions for news/video cards */
.interactive-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.interactive-card-link:focus-visible {
    outline: 2px solid #EE3F2C;
    outline-offset: 3px;
}

.interactive-card-link:hover,
.interactive-card-link:focus-visible {
    transform: translateY(-4px);
}

.interactive-card-link.media-surface:hover,
.interactive-card-link.media-surface:focus-visible {
    box-shadow: 0 22px 42px -26px rgba(0, 0, 0, 0.72);
}

.interactive-card-link.light-surface:hover,
.interactive-card-link.light-surface:focus-visible {
    box-shadow: 0 18px 36px -26px rgba(23, 20, 17, 0.45);
}

.interactive-card-link .card-media-zoom {
    transition: transform 700ms ease;
}

.interactive-card-link:hover .card-media-zoom,
.interactive-card-link:focus-visible .card-media-zoom {
    transform: scale(1.06);
}

/* Media detail page - premium editorial layer */
.media-detail-hero {
    position: relative;
    overflow: hidden;
}

.media-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 130% at 85% -10%, rgba(238, 63, 44, 0.12) 0%, transparent 60%);
}

.media-detail-backlink {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(149, 132, 116, 0.28);
}

.media-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.44rem 0.8rem;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(149, 132, 116, 0.3);
    color: rgba(23, 20, 17, 0.78);
    background: rgba(255, 253, 250, 0.55);
}

.media-meta-pill-category {
    background: #ee3f2c;
    color: #fff;
    border-color: #ee3f2c;
}

.media-detail-title {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.2rem, 5.6vw, 5.3rem);
    line-height: 0.93;
    letter-spacing: 0.01em;
    font-weight: 800;
}

.media-detail-intro {
    font-size: clamp(1.03rem, 1.3vw, 1.28rem);
    line-height: 1.78;
    font-weight: 300;
}

.media-hero-frame {
    position: relative;
    box-shadow: 0 32px 55px -34px rgba(23, 20, 17, 0.6);
}

.media-article-prose {
    font-size: 1.06rem;
    line-height: 1.86;
    max-width: 74ch;
}

.media-article-prose p + p {
    margin-top: 1.55rem;
}

.media-article-prose h2,
.media-article-prose h3 {
    font-family: 'Teko', sans-serif;
    color: #171411;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0.01em;
    margin-top: 2.6rem;
    margin-bottom: 0.95rem;
}

.media-article-prose h2 {
    font-size: clamp(2rem, 3.3vw, 3.3rem);
}

.media-article-prose h3 {
    font-size: clamp(1.62rem, 2.3vw, 2.4rem);
}

.media-article-prose ul,
.media-article-prose ol {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding-left: 1.3rem;
}

.media-article-prose li + li {
    margin-top: 0.45rem;
}

.media-article-prose blockquote {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.1rem 1.2rem;
    border-left: 3px solid #ee3f2c;
    color: #171411;
    background: rgba(238, 63, 44, 0.08);
    font-size: 1.02rem;
    line-height: 1.72;
}

.media-article-prose a {
    color: #171411;
    text-decoration: underline;
    text-decoration-color: rgba(238, 63, 44, 0.8);
    text-underline-offset: 0.18rem;
}

.media-article-prose img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    border: 1px solid rgba(149, 132, 116, 0.28);
    box-shadow: 0 24px 35px -28px rgba(23, 20, 17, 0.45);
}

.media-side-card {
    background: rgba(255, 253, 250, 0.76);
    border: 1px solid rgba(149, 132, 116, 0.24);
    padding: 1.2rem;
    box-shadow: 0 20px 35px -28px rgba(23, 20, 17, 0.3);
}

.media-side-title {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 0.95;
    color: #171411;
}

.media-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.media-share-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    border: 1px solid rgba(149, 132, 116, 0.3);
    color: #171411;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    min-height: 2.7rem;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.media-share-link:hover,
.media-share-link:focus-visible {
    border-color: #ee3f2c;
    color: #ee3f2c;
    background: rgba(238, 63, 44, 0.05);
    transform: translateY(-1px);
}

.media-side-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(149, 132, 116, 0.22);
    padding-bottom: 0.6rem;
}

.media-side-meta-row dt {
    color: rgba(23, 20, 17, 0.63);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.66rem;
    font-weight: 700;
}

.media-side-meta-row dd {
    color: #171411;
    font-size: 0.83rem;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.media-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.72rem 0.86rem;
    border: 1px solid rgba(149, 132, 116, 0.3);
    color: #171411;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.media-action-link .material-symbols-outlined {
    font-size: 1.05rem;
}

.media-action-link:hover,
.media-action-link:focus-visible {
    background: #171411;
    border-color: #171411;
    color: #f5f1eb;
}

.media-nav-link {
    display: block;
    border: 1px solid rgba(149, 132, 116, 0.25);
    padding: 0.86rem 0.92rem;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.media-nav-link:hover,
.media-nav-link:focus-visible {
    border-color: #ee3f2c;
    background: rgba(238, 63, 44, 0.06);
}

.media-nav-label {
    display: block;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(23, 20, 17, 0.62);
}

.media-nav-title {
    display: block;
    margin-top: 0.25rem;
    color: #171411;
    font-size: 0.96rem;
    line-height: 1.4;
    font-weight: 600;
}

.media-detail-related {
    background: linear-gradient(180deg, rgba(245, 241, 235, 0.22) 0%, rgba(245, 241, 235, 0.74) 100%);
    border-top: 1px solid rgba(149, 132, 116, 0.2);
}

.media-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #171411;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid rgba(23, 20, 17, 0.3);
    padding-bottom: 0.15rem;
    transition: color 180ms ease, border-color 180ms ease;
}

.media-inline-link::after {
    content: '\2192';
    font-size: 0.92rem;
}

.media-inline-link:hover,
.media-inline-link:focus-visible {
    color: #ee3f2c;
    border-color: #ee3f2c;
}

.media-cta-panel {
    border: 1px solid rgba(149, 132, 116, 0.26);
    background: rgba(255, 253, 250, 0.9);
    padding: 1.25rem 1.2rem;
    color: #171411;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.media-cta-panel:hover,
.media-cta-panel:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(238, 63, 44, 0.6);
    box-shadow: 0 22px 35px -28px rgba(23, 20, 17, 0.4);
}

.media-cta-kicker {
    display: inline-block;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: rgba(23, 20, 17, 0.65);
}

.media-cta-panel h3 {
    margin-top: 0.6rem;
    font-family: 'Teko', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.media-cta-panel p {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(23, 20, 17, 0.8);
}

@media (min-width: 1024px) {
    .media-side-card {
        padding: 1.45rem 1.35rem;
    }
}

@media (max-width: 767px) {
    .media-article-prose {
        font-size: 1rem;
        line-height: 1.78;
    }

    .media-article-prose p + p {
        margin-top: 1.25rem;
    }

    .media-share-grid {
        grid-template-columns: 1fr;
    }
}
