/* ========================================
   OPC Router Türkiye DESIGN SYSTEM
   Corporate, Minimalist, Modern, Mobile-First
   ======================================== */

:root {
    /* Primary Brand Colors */
    --primary-color: #228b22;
    --secondary-color: #6c757d;
    --accent-color: #ff7b00;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Status Colors */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Extended Color Palette */
    --white: #ffffff;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --border-color: #e0e6ed;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #8e9aaf;
    
    /* Blog-Specific Colors */
    --blog-bg-primary: #fefefe;
    --blog-bg-secondary: #f8fafc;
    --blog-card-bg: #ffffff;
    --blog-card-border: rgba(0, 147, 222, 0.08);
    --blog-card-shadow: rgba(0, 0, 0, 0.06);
    --blog-card-shadow-hover: rgba(0, 147, 222, 0.15);
    --blog-text-primary: #2c3e50;
    --blog-text-secondary: #5a6c7d;
    --blog-text-muted: #8b9dc3;
    --blog-accent: #0093de;
    --blog-accent-light: rgba(0, 147, 222, 0.1);
    --blog-gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --blog-gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, #17a2b8 100%);
    --blog-gradient-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    
    /* Enhanced Green Palette for CTAs */
    --color-green-bright: #13ce66;
    --color-green-dark: #0f9f4f;
    --color-green-light: rgba(19, 206, 102, 0.1);
    --color-white: #ffffff;
    --color-dark: #2c3e50;
    --color-gray-very-light: #f8fafc;
    --color-gray-dark: #4a5568;
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-heading: 'Inter', 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    --shadow-blog-card: 0 4px 20px var(--blog-card-shadow), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-blog-card-hover: 0 20px 60px var(--blog-card-shadow-hover), 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Paragraph and text */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ========================================
   BUTTON SYSTEM
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 44px;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Primary Button - Green gradient */
.btn-primary {
    color: var(--color-white) !important;
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-bright)) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 15px rgba(19, 206, 102, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-green-bright), var(--color-green-dark)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(19, 206, 102, 0.3) !important;
    color: var(--color-white) !important;
}

/* Secondary Button - Orange gradient */
.btn-secondary {
    color: var(--color-white) !important;
    background: linear-gradient(135deg, var(--color-orange), #FF6B35) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FF6B35, var(--color-orange)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3) !important;
    color: var(--color-white) !important;
}

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

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

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

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Light Button - Light gradient with brand colors */
.btn-light {
    color: var(--color-dark) !important;
    background: linear-gradient(135deg, var(--color-white), var(--color-gray-very-light)) !important;
    border: 2px solid var(--color-green-bright) !important;
    box-shadow: 0 6px 15px rgba(19, 206, 102, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-light:hover::before {
    left: 100%;
}

.btn-light:hover {
    background: linear-gradient(135deg, var(--color-green-bright), var(--color-green-dark)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(19, 206, 102, 0.3) !important;
    color: var(--color-white) !important;
    border-color: var(--color-green-dark) !important;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
}

/* ========================================
   CARD SYSTEM
   ======================================== */

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-color);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--light-color);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--spacing-sm);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
    min-width: 0;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Large breakpoint columns (≥992px) */
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* Section Spacing */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

/* ========================================
   FORM SYSTEM
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form States */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    color: var(--danger-color);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    color: var(--success-color);
}

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

/* Spacing */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

/* Background Colors */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-color); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark-color); }

/* Text Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-white { color: var(--white); }

/* Border */
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-0 { border: 0; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .row {
        margin: 0 -var(--spacing-xs);
    }
    
    .col {
        padding: 0 var(--spacing-xs);
    }
    
    /* Mobile columns */
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9, .col-lg-4, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn {
        padding: 14px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        width: auto;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Stagger animation for multiple elements */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-up, .stagger-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
} 