/* ==========================================================================
   KPSS Cep Kitabı Style System & Custom Styles
   Designed by Antigravity
   ========================================================================== */

/* Design Tokens (CSS Variables) */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #121b2d;
    --bg-footer: #121b2d;
    --bg-drawer: #0f172a;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --text-accent: #38bdf8;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --font-primary: 'Inter', sans-serif;
    --font-accent: 'Gloria Hallelujah', cursive;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography helper classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Visually Hidden (for SEO) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background-color: var(--bg-card);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 65px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.02);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

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

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.menu-item a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.8;
}

.menu-item a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.menu-item.active a {
    opacity: 1;
    color: var(--primary-color);
}

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.menu-item a:hover::after,
.menu-item.active a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-drawer);
    z-index: 1002;
    box-shadow: var(--shadow-xl);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition-smooth);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    height: 40px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--text-accent);
    transform: rotate(90deg);
}

.drawer-nav {
    margin-top: 1rem;
}

.drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-item a {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.drawer-item.active a {
    color: var(--text-accent);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Main Site Content wrapper */
.site-content {
    margin-top: 110px;
    /* Offset sticky header */
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;

    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 820px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

/* Showcase / Screenshot Carousel Section */
.showcase-section {
    padding: 5rem 0 3rem;
    background-color: var(--bg-card);
}

.showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    position: relative;
    gap: 1.5rem;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 calc((100% - 6rem) / 4);
    /* Shows 4 slides by default */
    min-width: 200px;
    display: flex;
    justify-content: center;
    transition: var(--transition-smooth);
}

.phone-mockup {
    width: 100%;
    max-width: 330px;
    height: auto;
    aspect-ratio: 9 / 16;
    background-color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.phone-mockup::before {
    /* Dynamic Island */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;

    border-radius: 10px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.4rem;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Hover effects for highlighted carousel slide */
.carousel-slide:hover {
    transform: translateY(-8px);
}

.carousel-slide:hover .phone-mockup {
    box-shadow: var(--shadow-xl), 0 30px 60px -15px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

/* Navigation buttons */
.carousel-nav-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 100;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

/* Dots navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.dot.active {
    background-color: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

/* Download Section */
.download-section {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--bg-card);
}

.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.info-card {
    max-width: 700px;
    animation: fadeIn 1s ease-out;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-link {
    display: block;
    transition: var(--transition-smooth);
}

.store-badge {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.store-link:hover {
    transform: translateY(-4px) scale(1.02);
}

.store-link:hover .store-badge {
    box-shadow: var(--shadow-xl), 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    margin: 0;
}

/* Other Apps Section */
.other-apps-section {
    padding: 5rem 0 6rem;
    background-color: var(--bg-main);
}

.other-apps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apps-heading {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.apps-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 960px;
}

.app-card {
    background-color: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--text-accent));
    opacity: 0;
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.app-title {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    justify-content: space-between;
}

.app-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mini-store-buttons {
    display: flex;
    gap: 0.75rem;
}

.mini-store-link {
    flex: 1;
    display: block;
}

.mini-store-badge {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.mini-store-link:hover .mini-store-badge {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* Footer Section */
.site-footer {
    background-color: var(--bg-footer);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Privacy Policy Page Elements */
.policy-page .site-content {
    background-color: var(--bg-main);
}

.policy-banner {
    background-color: #0f172a;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

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

.breadcrumbs .current {
    color: var(--text-light);
}

.policy-title {
    font-size: 2.25rem;
    color: var(--text-light);
}

.policy-content-section {
    padding: 4rem 0 6rem;
}

.policy-container {
    max-width: 800px;
}

.policy-article {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.policy-article-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.policy-block {
    margin-bottom: 2rem;
}

.policy-block h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.policy-block p {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.policy-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-block li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.policy-subtitle {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.highlight-block {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.highlight-block h3 {
    color: var(--primary-hover);
}

.english-text {
    font-style: italic;
    color: var(--text-secondary) !important;
}

.english-block {
    background-color: #f1f5f9;
    border-left: 4px solid #64748b;
    padding: 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.contact-block {
    background-color: #fafaf9;
    border: 1px dashed #d6d3d1;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 3rem;
}

.contact-block a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Breakpoints */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 4rem) / 3);
        /* Shows 3 slides */
    }
}

/* Small Tablet Layout (max-width: 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .carousel-nav-btn {
        display: none;
    }

    .carousel-slide {
        flex: 0 0 calc((100% - 2rem) / 2);
        /* Shows 2 slides */
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .policy-article {
        padding: 2rem;
    }
}

/* Mobile Layout (max-width: 480px) */
@media (max-width: 480px) {
    .site-header {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    .site-content {
        margin-top: 70px;
    }

    .hero-section {
        padding: 2.5rem 0 3.5rem;
    }

    .carousel-slide {
        flex: 0 0 100%;
        /* Shows 1 slide */
    }

    .phone-mockup {
        max-width: 270px;
    }

    .store-badge {
        height: 50px;
    }

    .app-card {
        padding: 1.5rem;
    }

    .app-icon {
        width: 60px;
        height: 60px;
    }

    .policy-article {
        padding: 1.5rem 1rem;
    }

    .policy-title {
        font-size: 1.75rem;
    }
}