/*
FILE: app/static/css/style.css
DESCRIPTION: Main stylesheet for DevHub
DEVELOPER: DevHub.com
*/

/* ===== CSS Variables ===== */
:root {
    /* Dark Theme (Default) */
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #00D4FF;
    --secondary-dark: #00B8D4;
    
    --background: #0A0E17;
    --background-secondary: #141B2D;
    --surface: #1A233A;
    --surface-hover: #243049;
    
    --text-primary: #E8EAED;
    --text-secondary: #9BA4B5;
    --text-muted: #6B7A8F;
    
    --border: #2A3454;
    --border-light: #3A4868;
    
    --success: #00E676;
    --success-dark: #00C853;
    --warning: #FFAB00;
    --warning-dark: #FF8F00;
    --danger: #FF5252;
    --danger-dark: #D32F2F;
    --info: #448AFF;
    --info-dark: #2979FF;
    
    --gradient-primary: linear-gradient(135deg, #6C63FF, #00D4FF);
    --gradient-secondary: linear-gradient(135deg, #00D4FF, #6C63FF);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(108, 99, 255, 0.2);
    
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #0A0E17;
}

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

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

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

.btn-success {
    background: var(--success);
    color: #0A0E17;
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-warning {
    background: var(--warning);
    color: #0A0E17;
}

.btn-warning:hover {
    background: var(--warning-dark);
}

.btn-github {
    background: #24292E;
    color: #fff;
}

.btn-github:hover {
    background: #1A1E22;
}

.btn-demo {
    background: var(--info);
    color: #fff;
}

.btn-demo:hover {
    background: var(--info-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn:disabled, .btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner { background: #4CAF50; color: #fff; }
.difficulty-intermediate { background: #FF9800; color: #fff; }
.difficulty-advanced { background: #F44336; color: #fff; }

.visibility-public { background: #448AFF; color: #fff; }
.visibility-restricted { background: #FFAB00; color: #0A0E17; }
.visibility-premium { background: #9C27B0; color: #fff; }

.status-active { background: #4CAF50; color: #fff; }
.status-pending { background: #FFAB00; color: #0A0E17; }
.status-suspended { background: #FF5252; color: #fff; }
.status-banned { background: #F44336; color: #fff; }
.status-approved { background: #4CAF50; color: #fff; }
.status-denied { background: #F44336; color: #fff; }

.featured-badge { background: #FF6B35; color: #fff; }

/* ============================================
ACCESS REQUEST STYLES
============================================ */

.access-required-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
}

.access-required-box:hover {
    border-color: var(--primary);
}

.access-required-box .lock-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    opacity: 0.6;
}

.access-required-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.access-required-box p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.access-required-box .btn {
    min-width: 180px;
    justify-content: center;
}

.download-request-section {
    padding: 20px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.download-request-section h4 {
    color: #FF6B35;
}

.download-request-section .btn-warning {
    background: #FF6B35;
    color: #fff;
}

.download-request-section .btn-warning:hover {
    background: #E55A2B;
}

.purchase-section {
    padding: 20px;
    background: rgba(0, 230, 118, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.purchase-section h4 {
    color: var(--success);
}

.purchase-section .btn-success {
    background: var(--success);
    color: #0A0E17;
}

.purchase-section .btn-success:hover {
    background: var(--success-dark);
}

.status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.status-badge.approved {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.status-badge.denied {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.status-badge.expired {
    background: rgba(155, 164, 181, 0.15);
    color: var(--text-muted);
}

/* ============================================
END ACCESS REQUEST STYLES
============================================ */

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA4B5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-control-file {
    padding: 12px 0;
    color: var(--text-secondary);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-errors {
    margin-top: 4px;
}

.form-errors span {
    display: block;
    font-size: 0.85rem;
    color: var(--danger);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== Alert ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 82, 82, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 171, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(68, 138, 255, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== Flash Container ===== */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

.flash-container .alert {
    animation: slideInRight 0.3s ease;
}

/* ===== Animations ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .container {
        padding: 0 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .flash-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ============================================
   MOBILE RESPONSIVE FIXES - TWO COLUMN LAYOUT
   ============================================ */

/* For tablets and small screens */
@media (max-width: 768px) {
    /* Services Grid - 2 columns on tablet */
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    
    .service-card {
        padding: 20px 16px !important;
    }
    
    /* Offerings Grid - 2 columns */
    .offerings-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    
    .offering-card {
        padding: 20px 16px !important;
    }
}

@media (max-width: 480px) {
    /* ===== TWO COLUMN GRIDS ===== */
    
    /* Services Grid - 2 columns */
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .service-card {
        padding: 14px 12px !important;
    }
    
    .service-card .service-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    
    .service-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }
    
    .service-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    
    /* Offerings/Features Grid - 2 columns */
    .offerings-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .offering-card {
        padding: 14px 10px !important;
    }
    
    .offering-card .offering-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    
    .offering-card h4 {
        font-size: 0.75rem !important;
    }
    
    .offering-card p {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }
    
    /* Stats Grid - 2 columns */
    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .analytics-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .stat-card-mini,
    .stat-card-modern,
    .admin-stat-card {
        padding: 10px 8px !important;
    }
    
    .stat-card-mini .stat-number,
    .stat-card-modern .stat-number,
    .admin-stat-card .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-card-mini .stat-label,
    .stat-card-modern .stat-label,
    .admin-stat-card .stat-label {
        font-size: 0.6rem !important;
    }
    
    /* Project Cards - 2 columns */
    .project-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .project-card-modern .card-body {
        padding: 10px 12px !important;
    }
    
    .project-card-modern .card-body .card-title {
        font-size: 0.8rem !important;
    }
    
    .project-card-modern .card-body .card-desc {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .project-card-modern .card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
    }
    
    .project-card-modern .card-footer .card-meta {
        font-size: 0.55rem !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    .project-card-modern .card-footer .btn-sm {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        min-height: 28px !important;
    }
    
    .project-card-modern .card-tags .tag {
        font-size: 0.55rem !important;
        padding: 1px 6px !important;
    }
    
    /* Contact Grid - 2 columns */
    .contact-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    
    .contact-item-modern {
        padding: 8px 10px !important;
        min-height: 40px !important;
        gap: 6px !important;
        border-radius: 30px !important;
    }
    
    .contact-item-modern .contact-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }
    
    .contact-item-modern .contact-info .value {
        font-size: 0.6rem !important;
    }
    
    .contact-item-modern .contact-info .label {
        font-size: 0.5rem !important;
    }
    
    .contact-item-modern .contact-arrow {
        display: none !important;
    }
    
    /* Quick Actions - 2 columns */
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    
    .quick-action-btn {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        gap: 4px !important;
    }
    
    .quick-action-btn i {
        font-size: 0.7rem !important;
    }
    
    /* Admin Stats - 2 columns */
    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    
    .stat-pill {
        padding: 8px 10px !important;
    }
    
    .stat-pill .pill-number {
        font-size: 1rem !important;
    }
    
    .stat-pill .pill-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    .stat-pill .pill-label {
        font-size: 0.55rem !important;
    }
    
    /* Hero Stats - 2 columns */
    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .stat-item {
        padding: 6px !important;
    }
    
    .stat-item .stat-number {
        font-size: 1.1rem !important;
    }
    
    /* Donation Amounts - 3 columns */
    .donation-amounts {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }
    
    .donation-amounts .amount-btn {
        padding: 4px 2px !important;
        font-size: 0.7rem !important;
    }
    
    .donation-amounts .amount-btn .amount-suffix {
        font-size: 0.45rem !important;
    }
}

/* ===== ONE COLUMN ON VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .services-grid,
    .offerings-grid,
    .project-grid-modern,
    .contact-grid-modern,
    .quick-actions-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================
   TABLET OPTIMIZATION (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .services-grid,
    .offerings-grid,
    .project-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    
    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}


/* ============================================
   TAG LEGEND COLORS
   ============================================ */

/* Difficulty Colors */
.legend-dot-beginner { background: #4CAF50; }
.legend-dot-intermediate { background: #FF9800; }
.legend-dot-advanced { background: #F44336; }

/* Visibility Colors */
.legend-dot-public { background: #448AFF; }
.legend-dot-restricted { background: #FFAB00; }
.legend-dot-premium { background: #9C27B0; }

/* Special Colors */
.legend-dot-featured { background: #FF6B35; }
.legend-dot-new { background: #00E676; }

/* Legend Dot Base */
.tag-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ============================================
   PROJECT DESCRIPTION - MARKDOWN STYLES
   ============================================ */

.project-description-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-description-content h1,
.project-description-content h2,
.project-description-content h3,
.project-description-content h4 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-description-content h1 { font-size: 1.8rem; }
.project-description-content h2 { font-size: 1.5rem; }
.project-description-content h3 { font-size: 1.2rem; }
.project-description-content h4 { font-size: 1rem; }

.project-description-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-description-content ul,
.project-description-content ol {
    margin: 12px 0 16px 24px;
    color: var(--text-secondary);
}

.project-description-content ul li,
.project-description-content ol li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.project-description-content ul {
    list-style-type: disc;
}

.project-description-content ul ul {
    list-style-type: circle;
    margin-top: 4px;
}

.project-description-content ol {
    list-style-type: decimal;
}

.project-description-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.project-description-content blockquote p {
    margin-bottom: 0;
}

.project-description-content code {
    background: var(--background-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary);
}

.project-description-content pre {
    background: var(--background-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.project-description-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.project-description-content table th {
    background: var(--background-secondary);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.project-description-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.project-description-content table tr:hover td {
    background: rgba(108, 99, 255, 0.02);
}

.project-description-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.project-description-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-description-content a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.project-description-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.project-description-content .highlight {
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}

/* Code block language badges */
.project-description-content .language-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    margin-bottom: 4px;
}

/* Why Section Icons */
.why-item .why-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: 0.8;
}

.why-item .why-icon i {
    font-size: 2.5rem;
}

/* ============================================
   RESPONSIVE FIXES - PANDA DEV
   ============================================ */

/* ===== Language Switcher - Mobile Fixes ===== */
@media (max-width: 768px) {
    /* Language switcher on mobile - clean and compact */
    .lang-switcher {
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        position: relative;
    }

    .lang-switcher .lang-toggle {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
        min-height: 44px;
        font-size: 0.9rem;
    }

    .lang-switcher .lang-toggle .lang-flag {
        font-size: 1.1rem;
    }

    .lang-switcher .lang-toggle .lang-code {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .lang-switcher .lang-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        margin: 0;
        background: transparent;
        backdrop-filter: none;
        animation: none;
        width: 100%;
        min-width: auto;
    }

    .lang-switcher .lang-dropdown.open {
        display: block !important;
    }

    .lang-switcher .lang-dropdown .lang-item {
        padding: 8px 16px;
        border-left: none;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    .lang-switcher .lang-dropdown .lang-item:hover {
        border-left: none;
        background: rgba(108, 99, 255, 0.04);
    }

    .lang-switcher .lang-dropdown .lang-item.active {
        background: rgba(108, 99, 255, 0.08);
    }

    .lang-switcher .lang-dropdown .lang-item .lang-flag {
        font-size: 1rem;
    }

    .lang-switcher .lang-dropdown .lang-item .lang-code {
        font-size: 0.6rem;
    }

    /* Hide desktop login on mobile */
    .nav-login-desktop {
        display: none !important;
    }

    /* Mobile login plus button */
    .mobile-login-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(42, 52, 84, 0.3);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.2rem;
        flex-shrink: 0;
        padding: 0;
        margin-left: 4px;
        position: relative;
    }

    .mobile-login-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(108, 99, 255, 0.3);
        color: var(--text-primary);
    }

    .mobile-login-toggle .icon-plus {
        font-size: 1.2rem;
        font-weight: 300;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .mobile-login-toggle.open .icon-plus {
        transform: rotate(45deg);
    }

    .mobile-login-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        background: rgba(26, 35, 58, 0.98);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 6px 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        z-index: 1002;
    }

    .mobile-login-dropdown.open {
        display: block !important;
        animation: dropdownFadeIn 0.2s ease;
    }

    .mobile-login-dropdown .login-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
        width: 100%;
        cursor: pointer;
        font-family: var(--font-family);
        border-left: 2px solid transparent;
    }

    .mobile-login-dropdown .login-item:hover {
        background: rgba(108, 99, 255, 0.06);
        color: var(--text-primary);
        border-left-color: var(--primary);
    }

    .mobile-login-dropdown .login-item .material-icons {
        font-size: 1.1rem;
        opacity: 0.7;
    }
}

/* ===== Extra small screens ===== */
@media (max-width: 480px) {
    .lang-switcher .lang-toggle {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-height: 38px;
    }

    .lang-switcher .lang-toggle .lang-flag {
        font-size: 0.9rem;
    }

    .lang-switcher .lang-dropdown .lang-item {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .mobile-login-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .mobile-login-toggle .icon-plus {
        font-size: 1rem;
    }
}

/* ============================================
   NAVBAR RESPONSIVE - MAINTAIN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .navbar.scrolled {
        height: 56px;
    }

    .navbar .container {
        padding: 0 16px;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        height: auto;
        width: 100%;
    }

    .nav-links > li {
        height: auto;
        width: 100%;
        display: block;
    }

    .nav-link {
        padding: 10px 16px;
        justify-content: flex-start;
        width: 100%;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.btn-login {
        justify-content: center;
        margin-top: 4px;
        padding: 10px 24px;
        width: 100%;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-logo-wrapper {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .brand-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 56px;
    }

    .nav-menu {
        top: 56px;
        max-height: calc(100vh - 56px);
        padding: 12px 16px 20px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-logo-wrapper {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

/* END OF FILE - Signed admin@thepandadev.com */