/* ========================================
   SINGLE PROJECT PAGE STYLES
   ======================================== */

/* Import temanın ana renk paletini */
:root {
    /* Digital Heritage Lab Main Palette */
    --color-bg-darkest: #0B090A;
    --color-bg-darker: #161A1D;
    --color-red-dark: #660708;
    --color-red: #A4161A;
    --color-red-mid: #BA181B;
    --color-red-bright: #E5383B;
    --color-gray-dark: #B1A7A6;
    --color-gray: #D3D3D3;
    --color-gray-light: #F5F3F4;
    --color-white: #FFFFFF;
    
    /* Project page özel renkler */
    --project-gradient: linear-gradient(135deg, var(--color-bg-darkest) 0%, var(--color-bg-darker) 50%, var(--color-red-dark) 100%);
    --card-gradient: linear-gradient(145deg, var(--color-bg-darker), var(--color-bg-darkest));
    --accent-gradient: linear-gradient(90deg, var(--color-red-bright), var(--color-red), var(--color-red-dark));
}

/* ----------------------------------------
   PROJECT HERO SECTION
   ---------------------------------------- */
.project-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--project-gradient);
    color: var(--color-gray-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 9, 10, 0.8) 0%,
        rgba(164, 22, 26, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Status Badge */
.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-status-badge.status-active {
    background: rgba(229, 56, 59, 0.2);
    color: var(--color-red-bright);
    box-shadow: 0 0 20px rgba(229, 56, 59, 0.3);
}

.project-status-badge.status-complete {
    background: rgba(177, 167, 166, 0.2);
    color: var(--color-gray);
    box-shadow: 0 0 20px rgba(177, 167, 166, 0.3);
}

.project-status-badge.status-on-hold {
    background: rgba(186, 24, 27, 0.2);
    color: var(--color-red-mid);
    box-shadow: 0 0 20px rgba(186, 24, 27, 0.3);
}

.project-status-badge.status-cancelled {
    background: rgba(102, 7, 8, 0.2);
    color: var(--color-red-dark);
    box-shadow: 0 0 20px rgba(102, 7, 8, 0.3);
}

/* Project Title */
.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Quick Info Bar */
.project-quick-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(164, 22, 26, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(164, 22, 26, 0.2);
    color: var(--color-white);
}

.info-item i {
    color: var(--color-red-bright);
}

/* Info Circle Icon Styling */
.fa-info-circle {
    background: var(--color-red) !important;
    color: var(--color-white) !important;
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.fa-info-circle:before {
    color: var(--color-white) !important;
    font-size: 16px !important;
}

/* Action Buttons */
.project-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(164, 22, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 22, 26, 0.4);
    background: linear-gradient(135deg, var(--color-red-bright), var(--color-red));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-gray-dark), var(--color-bg-darker));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(177, 167, 166, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(177, 167, 166, 0.4);
    background: linear-gradient(135deg, var(--color-gray), var(--color-gray-dark));
}

.btn-tertiary {
    background: rgba(245, 243, 244, 0.1);
    color: var(--color-gray-light);
    border: 2px solid rgba(245, 243, 244, 0.3);
    backdrop-filter: blur(10px);
}

.btn-tertiary:hover {
    background: rgba(245, 243, 244, 0.2);
    transform: translateY(-2px);
}

/* ----------------------------------------
   PROJECT CONTENT SECTION
   ---------------------------------------- */
.project-content-section {
    padding: 5rem 0;
    background: var(--color-bg-darker);
    color: var(--color-gray-light);
    min-height: 100vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ----------------------------------------
   OVERVIEW CARDS
   ---------------------------------------- */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.overview-card {
    background: linear-gradient(145deg, var(--color-bg-darkest), var(--color-bg-darker));
    border-radius: 20px;
    padding: 0;
    border: 1px solid var(--sp-border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red-dark), var(--color-red), var(--color-red-bright));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(164, 22, 26, 0.1);
    border-bottom: 1px solid var(--sp-border);
}

.card-header i {
    color: var(--color-red-bright);
    font-size: 1.2rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-light);
}

.card-content {
    padding: 1.5rem;
}

/* Stats Items */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: var(--color-gray-dark);
}

.stat-value {
    font-weight: 600;
    color: var(--color-gray-light);
}

.stat-value.status-active { color: var(--color-red-bright); }
.stat-value.status-complete { color: var(--color-gray-light); }
.stat-value.status-on-hold { color: var(--color-gray-dark); }
.stat-value.status-cancelled { color: var(--color-red); }

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ----------------------------------------
   CONTENT SECTIONS
   ---------------------------------------- */
.content-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.section-header h2 i {
    color: #fbbf24;
}

.section-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.section-content {
    background: linear-gradient(145deg, var(--color-bg-darkest), var(--color-bg-darker));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--sp-border);
}

.rich-content {
    line-height: 1.8;
    color: #cbd5e1;
}

.rich-content h3 {
    color: var(--color-gray-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content p {
    margin-bottom: 1.5rem;
}

.rich-content ul, .rich-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

/* ----------------------------------------
   SIDEBAR
   ---------------------------------------- */
.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 120px; /* Header yüksekliği + biraz margin */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: calc(100vh - 140px); /* Viewport yüksekliği - top offset */
    overflow-y: auto;
}

.sidebar-widget {
    background: linear-gradient(145deg, var(--color-bg-darkest), var(--color-bg-darker));
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--sp-border);
}

.sidebar-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Widget */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(164, 22, 26, 0.1);
    color: var(--color-gray-light);
    border-left-color: var(--color-red);
    transform: translateX(5px);
}

/* Project Links */
.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-white) !important;
    transition: all 0.3s ease;
    border: 1px solid var(--sp-border);
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-white) !important;
}

.project-link *,
.project-link span,
.project-link i,
.project-link text {
    color: var(--color-white) !important;
}

.project-link:hover *,
.project-link:hover span,
.project-link:hover i,
.project-link:hover text {
    color: var(--color-white) !important;
}

.project-link.demo-link {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
}

.project-link.github-link {
    background: linear-gradient(135deg, var(--color-bg-darker), var(--color-bg-darkest));
}

.project-link.external-link {
    background: linear-gradient(135deg, var(--color-red-mid), var(--color-red-dark));
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: var(--color-white);
}

.share-btn.twitter { background: var(--color-red); }
.share-btn.linkedin { background: var(--color-red-mid); }
.share-btn.facebook { background: var(--color-red-dark); }

/* ----------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------- */
.related-projects-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg-darkest), var(--color-bg-darker));
    color: var(--color-gray-light);
}

.related-projects-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-projects-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
}

.related-projects-section .section-header p {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.related-project-card {
    background: linear-gradient(145deg, var(--color-bg-darkest), var(--color-bg-darker));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    transition: all 0.3s ease;
}

.related-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-project-card .card-image {
    height: 200px;
    overflow: hidden;
}

.related-project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-card:hover .card-image img {
    transform: scale(1.1);
}

.related-project-card .card-content {
    padding: 1.5rem;
}

.related-project-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.related-project-card h3 a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-project-card h3 a:hover {
    color: var(--color-red-bright);
}

.related-project-card p {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-active { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.status-badge.status-complete { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-badge.status-on-hold { background: rgba(251, 191, 36, 0.2); color: #fde047; }
.status-badge.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.section-footer {
    text-align: center;
}

/* ----------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------- */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Tablet boyutunda sticky top değerini ayarla */
    .sidebar-sticky {
        top: 100px;
        max-height: calc(100vh - 120px);
    }
    
    .sidebar {
        order: -1;
    }
    
    .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-quick-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .project-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    /* Mobilde content düzenini değiştir */
    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar {
        order: 2;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobilde sidebar widget'larını yan yana göster */
    .sidebar-sticky {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    /* Mobilde sticky davranışını devre dışı bırak */
    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-content-section {
        padding: 3rem 0;
    }
    
    /* Çok küçük ekranlarda sidebar widget'larını alt alta göster */
    .sidebar-sticky {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-wrapper {
        gap: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overview-card,
.content-section,
.sidebar-widget {
    animation: fadeInUp 0.6s ease forwards;
}

.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }

/* Smooth Scrolling for Navigation */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar styles removed */
