/* ========================================
   Kortingsspot - Modern Coupon Platform
   Theme Colors: Blue (#1CA2FC) & Orange (#FF943D)
   ======================================== */

:root {
    /* Theme Colors */
    --primary-blue: #1CA2FC;
    --primary-orange: #FF943D;
    --secondary-blue: #0080D6;
    --secondary-orange: #FF7A0F;

    /* Neutral Colors */
    --text-dark: #2D3748;
    --text-gray: #4A5568;
    --text-light: #718096;
    --border-gray: #E2E8F0;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;

    /* Status Colors */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;
    --info: #4299E1;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===========================
   RESET & GLOBAL STYLES
   =========================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-primary, .btn-secondary {
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(28, 162, 252, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 162, 252, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(28, 162, 252, 0.2);
}

.btn-primary i,
.btn-secondary i {
    margin-right: 5px;
    font-size: 0.85em;
}

.btn-secondary {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 148, 61, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 148, 61, 0.3);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow-md);
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, #1CA2FC 0%, #0080D6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--secondary-orange);
    transform: scale(1.05);
}

/* ===========================
   CATEGORIES SECTION
   =========================== */

.categories-section {
    padding: 3rem 2rem;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===========================
   COUPONS GRID
   =========================== */

.coupons-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 6px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.2s;
}

.filter-tab.active {
    background: var(--primary-blue);
    color: white;
}

.filter-tab:hover:not(.active) {
    background: var(--bg-light);
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Kupon Kartı */
.coupon-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.coupon-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
    padding: 8px;
    background: white;
}

.coupon-meta {
    flex: 1;
}

.coupon-meta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.coupon-meta .store-name {
    color: var(--text-light);
    font-size: 0.9rem;
}

.coupon-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-exclusive {
    background: #FFF5EB;
    color: var(--primary-orange);
}

.badge-verified {
    background: #E6F7EF;
    color: var(--success);
}

.badge-featured {
    background: #E6F4FF;
    color: var(--primary-blue);
}

.badge-expiring {
    background: #FFF3E6;
    color: var(--warning);
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.coupon-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.coupon-code {
    background: linear-gradient(135deg, #F7FAFC, #EDF2F7);
    border: 2px dashed var(--primary-blue);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.coupon-code:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.coupon-info {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.coupon-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================
   STORES SECTION
   =========================== */

.stores-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.store-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--border-gray);
}

.store-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.store-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.store-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-card .coupon-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   SIDEBAR & FILTERS
   =========================== */

.page-layout {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-gray);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(28, 162, 252, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: #2D3748;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   NEWSLETTER
   =========================== */

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
}

.newsletter-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-box p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary-orange);
    color: white;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--secondary-orange);
    transform: scale(1.05);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .coupons-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-orange { color: var(--primary-orange); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ===========================
   HOW IT WORKS SECTION
   =========================== */

.how-it-works-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-it-works-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.how-step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.how-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(28, 162, 252, 0.2);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1CA2FC, #0080D6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(28, 162, 252, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF943D, #FF7A0F);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.how-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.how-step h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.how-step p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 1rem;
    }

    .how-it-works-grid {
        gap: 2.5rem;
    }

    .how-step {
        padding: 2rem 1.5rem;
    }
}
