/**
 * KARAY Digital - Service Page Styles
 * 100% Mobile Responsive & SEO Optimized
 */

/* ========================
   Base & Typography
   ======================== */
.service-page {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================
   Service Hero Section
   ======================== */

/* Push content below fixed header */
.service-page {
    padding-top: var(--header-height, 80px);
}

/* Breadcrumb Wrapper - Sayfanın en üstünde */
.service-breadcrumb-wrapper {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.service-breadcrumb-wrapper .container {
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0 24px;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.875rem;
    margin: 0;
}

.service-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.service-breadcrumb a:hover {
    color: var(--primary);
}

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

.service-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Hero Section */
.service-hero {
    padding: 60px 0 70px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Grid - İki Sütunlu Yapı */
.service-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 100%;
}

.service-hero-content {
    display: block;
}

.service-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-hero-content h1 .highlight {
    color: var(--primary);
}

.service-hero-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Stats */
.service-stats {
    display: flex;
    gap: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}

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

.service-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.service-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hero Buttons */
.service-hero-buttons {
    display: flex;
    gap: 12px;
}

.service-hero-buttons .btn {
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-service-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-service-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-service-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-service-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Image */
.service-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-hero-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

/* ========================
   Section Common Styles
   ======================== */
/* Tüm section'lar için ortak container genişliği - 1400px */
.service-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.service-section {
    padding: 80px 0;
}

.service-section.bg-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================
   Solutions/Services Grid
   ======================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.12);
    transform: translateY(-4px);
}

.solution-card.featured {
    border-color: var(--primary);
}

.solution-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
    border-radius: 16px;
    pointer-events: none;
}

.solution-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.solution-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
}

.solution-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.solution-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.solution-features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.solution-price {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 8px;
}

/* ========================
   Portfolio Section
   ======================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.portfolio-info span {
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
}

/* ========================
   Process Section
   ======================== */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-item {
    text-align: center;
    position: relative;
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 220px;
}

.process-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.process-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================
   Why Us Section
   ======================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-us-content > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.why-us-list {
    display: grid;
    gap: 20px;
}

.why-us-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.why-us-item:hover {
    border-color: var(--primary);
}

.why-us-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.why-us-icon svg {
    width: 22px;
    height: 22px;
    stroke: #10b981;
}

.why-us-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.why-us-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.why-us-image {
    display: flex;
    justify-content: center;
}

.why-us-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

/* ========================
   FAQ Section
   ======================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--card-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================
   CTA Section
   ======================== */
.service-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    text-align: center;
}

.service-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.service-cta p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-white {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ========================
   Related Services
   ======================== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.related-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.related-card .arrow {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* ========================
   RESPONSIVE - TABLET
   ======================== */
@media (max-width: 1024px) {
    .service-breadcrumb {
        padding: 14px 0;
    }
    
    .service-hero {
        padding: 50px 0;
    }
    
    .service-hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 30px;
    }
    
    .service-hero-image img {
        max-height: 280px;
    }
    
    .service-stats {
        justify-content: flex-start;
    }
    
    .service-hero-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .service-hero-image {
        order: -1;
    }
    
    .service-hero-image img {
        max-height: 200px;
    }
    
    .service-stats {
        justify-content: center;
    }
    
    .service-hero-buttons {
        justify-content: center;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        justify-content: center;
        gap: 24px;
    }
    
    .process-item {
        min-width: 160px;
        max-width: 200px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .why-us-image {
        order: -1;
    }
    
    .why-us-image img {
        max-height: 300px;
    }
    
    .why-us-content {
        text-align: center;
    }
    
    .why-us-list {
        text-align: left;
    }
}

/* ========================
   RESPONSIVE - MOBILE
   ======================== */
@media (max-width: 768px) {
    .service-hero {
        padding: 40px 0 30px;
    }
    
    .service-breadcrumb {
        justify-content: center;
        font-size: 0.8125rem;
    }
    
    .service-hero-content h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .service-hero-desc {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .service-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .service-stat {
        flex: 1;
        min-width: 80px;
    }
    
    .service-stat-value {
        font-size: 1.375rem;
    }
    
    .service-stat-label {
        font-size: 0.8125rem;
    }
    
    .service-hero-buttons {
        flex-direction: column;
    }
    
    .service-hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .service-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .section-desc {
        font-size: 0.9375rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .solution-card {
        padding: 24px 20px;
    }
    
    .solution-card h3 {
        font-size: 1.125rem;
    }
    
    .solution-card p {
        font-size: 0.9375rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .process-item {
        display: flex;
        text-align: left;
        gap: 16px;
        min-width: auto;
        max-width: 100%;
    }
    
    .process-item h4 {
        font-size: 1.0625rem;
    }
    
    .process-item p {
        font-size: 0.9375rem;
    }
    
    .process-number {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
        margin: 0;
    }
    
    .why-us-content h2 {
        font-size: 1.5rem;
    }
    
    .why-us-item {
        padding: 16px;
    }
    
    .why-us-text h4 {
        font-size: 1rem;
    }
    
    .why-us-text p {
        font-size: 0.9375rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-cta-white,
    .cta-buttons .btn-cta-outline {
        width: 100%;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9375rem;
    }
}

/* ========================
   Service Gallery
   ======================== */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-gallery .gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.service-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-gallery .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(119, 71, 166, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-gallery .gallery-overlay svg {
    color: white;
}

.service-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.service-gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .service-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .service-gallery .gallery-item {
        border-radius: 8px;
    }
}

/* ========================
   RESPONSIVE - SMALL MOBILE
   ======================== */
@media (max-width: 480px) {
    .service-hero {
        padding: 30px 0 24px;
    }
    
    .service-hero-image img {
        max-height: 180px;
    }
    
    .service-hero-content h1 {
        font-size: 1.625rem;
        line-height: 1.25;
    }
    
    .service-hero-desc {
        font-size: 0.9375rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .solution-card {
        padding: 20px 16px;
    }
    
    .solution-icon {
        width: 46px;
        height: 46px;
    }
    
    .service-cta {
        padding: 50px 0;
    }
    
    .service-cta h2 {
        font-size: 1.375rem;
    }
    
    .service-cta p {
        font-size: 0.9375rem;
    }
}

/* ========================
   Lightbox Modal
   ======================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        position: fixed;
    }
}
