/**
 * Anka Servis - Ana Stil Dosyası
 */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    background-image: 
        linear-gradient(0deg, rgba(44, 62, 80, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 62, 80, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 3px 3px, rgba(229, 90, 43, 0.02) 1px, transparent 0);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Teknik Arka Plan Pattern'leri */
.tech-bg-pattern {
    background-color: #f5f7fa;
    background-image: 
        linear-gradient(0deg, rgba(44, 62, 80, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 62, 80, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

/* Çözüm Merkezi Sidebar Sıralama - Her zaman solda (mobilde üstte, desktop'ta solda) */
.tech-bg-pattern .grid > .cozum-merkezi-sidebar,
.tech-bg-pattern .grid > .cozum-merkezi-content {
    display: block;
}

/* Mobil ve Desktop'ta sidebar her zaman önce (solda/üstte) */
.tech-bg-pattern .grid > .cozum-merkezi-sidebar {
    order: 1 !important;
}

.tech-bg-pattern .grid > .cozum-merkezi-content {
    order: 2 !important;
}

/* Mobilde Son Çözümler sidebar'ın en altına */
@media (max-width: 1023px) {
    .cozum-merkezi-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .cozum-merkezi-sidebar > div:not(.cozum-merkezi-latest-posts) {
        order: 1 !important;
    }
    
    .cozum-merkezi-sidebar .cozum-merkezi-latest-posts {
        order: 999 !important;
    }
}

.tech-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(229, 90, 43, 0.03) 1px, transparent 0);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.tech-bg-pattern > * {
    position: relative;
    z-index: 1;
}

/* Container - Mobil First */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

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

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b35;
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-contact .phone {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff5f0;
    border: 2px solid #ff6b35;
    border-radius: 5px;
    transition: all 0.3s;
}

.header-contact .phone:hover {
    background: #ff6b35;
    color: #fff;
    transform: scale(1.05);
}

.phone-icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b35;
    color: #fff;
    border: 2px solid #ff6b35;
}

.btn-primary:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #2c3e50;
    color: #fff;
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background: #34495e;
    border-color: #34495e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h1,
section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ffffff 100%);
    border-radius: 2px;
}

/* Services Grid - Mobil First */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card:hover h3 {
    color: #ff6b35;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Posts Grid - Mobil First */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.25rem;
}

.post-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: #ff6b35;
}

.post-card p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.post-date {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: #999;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Form - Mobil First */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.contact-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.contact-info a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

/* Footer - Mobil First */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination .active {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination .active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.pagination a:hover {
    background: #f0f0f0;
}

/* Service Detail */
.service-detail article,
.blog-detail article {
    max-width: 800px;
    margin: 0 auto;
}

.service-image,
.post-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.service-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.service-content,
.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-cta,
.post-navigation {
    margin-top: 2rem;
    text-align: center;
}

.post-meta {
    color: #666;
    margin-bottom: 1rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-left: 4px solid #ff6b35;
    padding-left: 1rem;
}

/* Mobil-First Responsive */
@media (max-width: 768px) {
    /* Header Mobil */
    .site-header .container {
        flex-wrap: wrap;
        padding: 0.75rem 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .header-contact {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .header-contact .phone {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Hero Mobil */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections Mobil */
    section {
        padding: 2.5rem 0;
    }
    
    section h1,
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    /* Services Grid Mobil */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Posts Grid Mobil */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact Form Mobil */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Footer Mobil */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    /* Container Mobil */
    .container {
        padding: 0 15px;
    }
}

/* Küçük Mobil Cihazlar */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    section h1,
    section h2 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .post-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

