/* Detail Page Styles - Matches main.css theme */

.detail-page {
    padding: 2rem 3rem;
    background: var(--bg-main);
    min-height: 100vh;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--primary);
}

/* Project Header */
.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.project-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.project-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.network-type {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

/* Social Links */
.project-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.social-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Description */
.project-description {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

/* Commands Section */
.commands-section {
    margin-bottom: 2rem;
}

.commands-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.command-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid var(--border);
}

.command-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.command-block pre {
    margin: 0;
    padding: 1.25rem;
    background: #0a0a0f;
    overflow-x: auto;
}

.command-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.7;
}

/* Info Section */
.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-page {
        padding: 1.5rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-title-section {
        align-items: center;
    }

    .project-name {
        font-size: 1.75rem;
    }

    .project-social {
        justify-content: center;
    }

    .command-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
