/* ========================================
   PROJECT DETAILS PAGE STYLESHEET
   Dedicated page for displaying project details
   ======================================== */

/* ==================== PAGE LAYOUT ==================== */
.project-details-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.project-details-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 2rem 3rem;
}

/* ==================== BACK NAVIGATION ==================== */
.back-navigation {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    color: #007AFF;
    transform: translateX(-5px);
}

body.light-theme .back-button {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .back-button:hover {
    background: rgba(0, 122, 255, 0.1);
}

/* ==================== PROJECT HEADER ==================== */
.project-header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.project-title-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.project-page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== SCREENSHOTS SECTION ==================== */
.project-screenshots-section {
    margin-bottom: 3rem;
}

.large-slider {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

body.light-theme .large-slider {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.large-slider .slider-image {
    height: 600px;
}

/* ==================== PROJECT INFO SECTION ==================== */
.project-info-section {
    margin-bottom: 3rem;
}

.project-info-section .details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-info-section .details-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
}

body.light-theme .project-info-section .details-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.project-info-section .details-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

body.light-theme .project-info-section .details-section:hover {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* Features section spans full width */
.project-info-section .features-section {
    grid-column: 1 / -1;
}

.project-info-section .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #667eea;
    /* Fallback for browsers that don't support background-clip: text */
}

.section-icon {
    font-size: 1.75rem;
    -webkit-text-fill-color: initial;
    /* Reset for emojis to show properly */
}

/* Features Grid */
.project-info-section .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.project-info-section .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

body.light-theme .project-info-section .feature-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.project-info-section .feature-item:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.25);
    transform: translateX(8px);
}

.project-info-section .feature-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.project-info-section .feature-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 0.5rem 0;
}

.project-info-section .feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin: 0;
    line-height: 1.6;
}

/* Tech Stack */
.project-info-section .tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-info-section .tech-tag {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}

/* Metrics */
.project-info-section .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.project-info-section .metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

body.light-theme .project-info-section .metric-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.project-info-section .metric-card:hover {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-3px);
}

.project-info-section .metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #007AFF;
    margin-bottom: 0.35rem;
}

.project-info-section .metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Timeline */
.project-info-section .timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.project-info-section .timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, rgba(102, 126, 234, 0.2) 100%);
    border-radius: 2px;
}

.project-info-section .timeline-item {
    position: relative;
    padding-left: 1.5rem;
}

.project-info-section .timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid var(--bg-primary, #0a0a0a);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
}

body.light-theme .project-info-section .timeline-item::before {
    border-color: #ffffff;
}

.project-info-section .timeline-date {
    font-size: 0.85rem;
    color: #007AFF;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-info-section .timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.35rem;
}

.project-info-section .timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    line-height: 1.6;
}

/* ==================== ACTIONS SECTION ==================== */
.project-actions-section {
    text-align: center;
    padding: 2rem 0 3rem;
}

.project-actions-section .action-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-actions-section .action-button {
    padding: 1.15rem 2.5rem;
    font-size: 1rem;
    border-radius: 16px;
    min-width: 180px;
}

/* ==================== FOOTER ==================== */
.project-details-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    text-align: center;
}

body.light-theme .project-details-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.06);
}

.project-details-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== EMPTY STATE ==================== */
.project-not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.project-not-found h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-not-found p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .project-page-title {
        font-size: 2.5rem;
    }

    .large-slider .slider-image {
        height: 500px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .project-details-container {
        padding: 90px 1.5rem 2rem;
    }

    .project-info-section .details-grid {
        grid-template-columns: 1fr;
    }

    .project-info-section .features-list {
        grid-template-columns: 1fr;
    }

    .large-slider .slider-image {
        height: 450px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .project-details-container {
        padding: 85px 1rem 2rem;
    }

    .project-page-title {
        font-size: 2rem;
    }

    .project-page-subtitle {
        font-size: 1rem;
    }

    .large-slider {
        border-radius: 20px;
    }

    .large-slider .slider-image {
        height: 380px;
    }

    .project-info-section .details-section {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .project-info-section .section-title {
        font-size: 1.25rem;
    }

    .project-info-section .feature-item {
        padding: 1.25rem;
    }

    .project-actions-section .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .project-actions-section .action-button {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .project-details-container {
        padding: 80px 0.75rem 1.5rem;
    }

    .back-button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .project-header-section {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .project-page-title {
        font-size: 1.75rem;
    }

    .project-page-subtitle {
        font-size: 0.95rem;
    }

    .large-slider {
        border-radius: 16px;
    }

    .large-slider .slider-image {
        height: 300px;
    }

    .project-info-section .details-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .project-info-section .section-title {
        font-size: 1.15rem;
    }

    .section-icon {
        font-size: 1.5rem;
    }

    .project-info-section .feature-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .project-info-section .feature-icon {
        font-size: 1.5rem;
        min-width: 32px;
    }

    .project-info-section .feature-content h4 {
        font-size: 0.95rem;
    }

    .project-info-section .feature-content p {
        font-size: 0.85rem;
    }

    .project-info-section .tech-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .project-info-section .metric-value {
        font-size: 1.75rem;
    }

    .project-info-section .timeline {
        padding-left: 2rem;
    }

    .project-actions-section .action-button {
        padding: 1rem 2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .project-page-title {
        font-size: 1.5rem;
    }

    .large-slider .slider-image {
        height: 250px;
    }

    .project-info-section .details-section {
        padding: 1rem;
    }
}