/* Main CSS for OPC Router Türkiye Website */

/* General Styles */
:root {
    --primary-color: #228b22;    --secondary-color: #6c757d;
    --accent-color: #ff7b00;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #1788b8;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    width: 50%;
    padding: 0 15px;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* Button styles moved to forms.css for consistency and better gradient support */

/* btn-light styles now handled by design-system.css with beautiful gradients */

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

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-light:hover {
    color: #212529;
    background-color: var(--light-color);
    border-color: var(--light-color);
}

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

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon svg {
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BLOG PREVIEW SECTION - Enhanced Professional Design
   ======================================== */

.blog-preview {
    padding: 6rem 0;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.blog-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 139, 34, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 123, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.blog-preview .container {
    position: relative;
    z-index: 2;
}

.blog-preview .section-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.blog-preview .section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(34, 139, 34, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.05),
        0 8px 50px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 30px rgba(34, 139, 34, 0.08);
    border-color: rgba(34, 139, 34, 0.15);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.1) 0%, rgba(255, 123, 0, 0.1) 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.blog-content {
    padding: 2rem;
    background: transparent;
    position: relative;
    z-index: 2;
}

.blog-meta {
    margin-bottom: 1rem;
    position: relative;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.1) 0%, rgba(255, 123, 0, 0.1) 100%);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(34, 139, 34, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.blog-card:hover .blog-date::before {
    left: 100%;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-family-heading);
    color: var(--text-primary);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 100% 100%;
    transition: background-size 0.3s ease;
}

.blog-title a:hover {
    background-size: 100% 200%;
    transform: translateY(-1px);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    hyphens: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.25);
}

.read-more::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;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.read-more svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* View All Posts Button Enhancement */
.blog-preview .text-center .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.blog-preview .text-center .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;
}

.blog-preview .text-center .btn-primary:hover::before {
    left: 100%;
}

.blog-preview .text-center .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(34, 139, 34, 0.4);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* Contact CTA */
.contact-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.8) 0%, rgba(23, 162, 184, 0.8) 100%), 
                url('../media/pexels-mikael-blomkvist-6476248.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   GLOBAL BREADCRUMB SYSTEM
   ======================================== */

.breadcrumb {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 12px 20px;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

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

.breadcrumb:hover::before {
    left: 100%;
}

.breadcrumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid rgba(255, 255, 255, 0.5);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover:not(:last-child)::after {
    border-left-color: rgba(255, 255, 255, 0.8);
    transform: translateX(1px);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.breadcrumb-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    transition: left 0.3s ease;
    border-radius: 5px;
}

.breadcrumb-item a:hover::before {
    left: 0;
}

.breadcrumb-item a:hover {
    color: #fff;
    transform: translateY(-0.5px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb-item a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
    position: relative;
}

.breadcrumb-item.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 1px;
}

/* Home Icon for First Breadcrumb Item */
.breadcrumb-item:first-child a::before {
    content: '🏠';
    margin-right: 5px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 0;
}

.search-results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.search-results-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--dark-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination li.active a {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination li a:hover {
    background-color: #e9ecef;
}

.pagination li.active a:hover {
    background-color: #004494;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .col-lg-6 {
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Blog Preview Mobile Optimizations */
    .blog-preview {
        padding: 4rem 0;
    }

    .blog-preview .section-title {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .blog-preview .section-title::after {
        width: 80px;
        height: 3px;
    }

    .blog-grid {
        margin-top: 2.5rem;
        gap: 2rem;
    }

    .blog-card {
        border-radius: 16px;
        margin: 0 0.5rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.375rem;
    }

    .blog-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .read-more {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .blog-preview .text-center .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    /* Responsive breadcrumbs on mobile */
    .breadcrumb {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
        gap: 4px;
        margin-bottom: 1rem;
        max-width: 95%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
        min-width: max-content;
        font-size: 0.85rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
        border-left-width: 4px;
        border-top-width: 2px;
        border-bottom-width: 2px;
    }
    
    .breadcrumb-item a {
        padding: 2px 4px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    /* Blog Preview Small Mobile Optimizations */
    .blog-preview {
        padding: 3rem 0;
    }

    .blog-preview .section-title {
        font-size: 1.875rem;
    }

    .blog-preview .section-title::after {
        width: 60px;
        height: 2px;
    }

    .blog-grid {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .blog-card {
        margin: 0;
        border-radius: 14px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .blog-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .blog-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }

    .read-more {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .read-more svg {
        width: 16px;
        height: 16px;
    }

    .blog-preview .text-center .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}
