/**
 * KARAY Digital - Projects/Portfolio Styles
 * 100% Mobile Responsive
 */

/* ========================
   Projects Page - Hero
   ======================== */
.projects-page,
.project-detail-page {
    padding-top: var(--header-height, 80px);
}

/* Breadcrumb Wrapper - service-page ile aynı */
.page-breadcrumb-wrapper {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

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

.projects-hero {
    padding: 30px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.projects-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.projects-hero .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.projects-hero .breadcrumb .current {
    color: var(--text-primary);
}

.projects-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.projects-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ========================
   Filter Tabs
   ======================== */
.projects-filter {
    padding: 24px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ========================
   Projects Grid
   ======================== */
.projects-grid-section {
    padding: 60px 0;
}

/* Anasayfa ile aynı kart yapısı */
.projects-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card-new {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card-new:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
}

.project-card-new .project-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-card-new .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-new:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-card-new .project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
}

/* Proje kartı butonu - anasayfadaki ile birebir aynı */
.projects-page .project-card-new .project-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.projects-page .project-card-new:hover .project-overlay-btn {
    opacity: 1;
}

.projects-page .project-card-new .project-overlay-btn:hover {
    background: #5c3485;
}

.project-card-new .project-info {
    padding: 20px;
}

.project-card-new .project-cat {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.project-card-new .project-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-card-new .project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-card-new .project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card-new .tech-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.no-projects {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
}

.project-card.featured {
    border-color: rgba(245, 158, 11, 0.5);
}

.project-link {
    display: block;
    text-decoration: none;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.project-client {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 0.6875rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
}

.tech-more {
    font-size: 0.6875rem;
    padding: 4px 10px;
    background: var(--primary);
    border-radius: 4px;
    color: white;
}

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

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

.projects-cta p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
}

.btn-cta {
    display: inline-block;
    padding: 16px 36px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================
   Project Detail Page
   ======================== */
.project-hero {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.project-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.project-hero .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.project-hero .breadcrumb .current {
    color: var(--text-primary);
}

.project-hero-content {
    max-width: 800px;
}

.project-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.project-hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-meta {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-visit {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Cover Image */
.project-cover {
    padding: 40px 0;
    background: var(--bg-primary);
}

.project-cover img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Content Section */
.project-content-section {
    padding: 60px 0;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.project-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.project-description {
    margin-bottom: 50px;
}

.content-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Gallery */
.project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.gallery-overlay svg {
    color: white;
}

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

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    border: none;
}

.sidebar-cta h3 {
    color: white;
}

.sidebar-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.btn-sidebar-cta {
    display: block;
    padding: 12px;
    background: white;
    color: var(--primary);
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
}

/* Related Projects */
.related-projects {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.related-projects h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.related-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

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

.related-info span {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================
   Lightbox
   ======================== */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.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;
}

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

.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;
}

.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;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .projects-grid,
    .projects-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .project-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-card {
        margin-bottom: 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-hero h1 {
        font-size: 1.875rem;
    }
    
    .projects-hero p {
        font-size: 1rem;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .projects-grid,
    .projects-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-meta {
        gap: 20px;
    }
    
    .project-layout {
        gap: 30px;
    }
    
    .project-sidebar {
        grid-template-columns: 1fr;
    }
    
    .project-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .projects-cta h2 {
        font-size: 1.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: 30px 0;
    }
    
    .projects-hero h1 {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 16px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .projects-cta {
        padding: 50px 0;
    }
}

