/* Calculators Page Styles */

/* Header Styling */
.calculators-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.calculators-header .header-content {
    flex-shrink: 0;
}

.calculators-header .logo-link {
    text-decoration: none;
}

.calculators-header .app-title {
    font-size: 2rem;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Red Hat Display', 'Space Grotesk', sans-serif;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #f0f0f0;
    background-clip: initial;
}

.calculators-header .beta-tag {
    font-size: 0.6rem;
    background: linear-gradient(135deg, #c98442 0%, #d4a574 100%);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    vertical-align: super;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calculators-header .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Main Content */
.calculators-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(35, 35, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(201, 132, 66, 0.6), transparent);
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #f0f0f0;
    margin: 0 0 0.25rem 0;
    font-family: 'Red Hat Display', 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
}

.page-header p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Calculator Sections */
.calculator-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#chest-section .section-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}

#chest-section .section-icon i {
    color: #10b981;
    font-size: 1.25rem;
}

#cardiac-section .section-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
}

#cardiac-section .section-icon i {
    color: #ef4444;
    font-size: 1.25rem;
}

#abdomen-section .section-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
}

#abdomen-section .section-icon i {
    color: #f59e0b;
    font-size: 1.25rem;
}

#neuro-section .section-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

#neuro-section .section-icon i {
    color: #8b5cf6;
    font-size: 1.25rem;
}

#msk-section .section-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
}

#msk-section .section-icon i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #c98442;
    margin: 0 0 0.15rem 0;
    font-family: 'Red Hat Display', 'Space Grotesk', sans-serif;
}

.section-title p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.coming-soon-badge {
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    background: rgba(201, 132, 66, 0.15);
    color: #c98442;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.625rem;
}

.calculator-grid.placeholder {
    grid-template-columns: 1fr;
}

/* Calculator Cards - Horizontal Chip Style */
.calculator-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: #505050;
    background: #2a2a2a;
}

.calculator-card:hover .card-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.calculator-card:hover .card-icon {
    transform: scale(1.05);
}

.card-icon.chest-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
}

.card-icon.chest-icon i {
    color: #10b981;
    font-size: 1.1rem;
}

.card-icon.cardiac-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%);
}

.card-icon.cardiac-icon i {
    color: #ef4444;
    font-size: 1.1rem;
}

.card-icon.abdomen-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
}

.card-icon.abdomen-icon i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.card-body {
    flex: 1;
    min-width: 0;
}

.card-body h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #f0f0f0;
    margin: 0;
    font-family: 'Red Hat Display', 'Space Grotesk', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.15rem 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body .card-stats {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 0.25rem;
    display: block;
}

.card-badge {
    display: none;
}

.card-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Placeholder Cards */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}

.placeholder-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.placeholder-icon i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.3);
}

.placeholder-card p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Coming Soon Section Styling */
.calculator-section.coming-soon .section-header {
    opacity: 0.7;
}

/* Footer */
.app-footer {
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculators-content {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .calculator-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .calculators-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }
    
    .calculators-header .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .calculators-header .nav-links {
        flex-wrap: wrap;
    }
    
    .calculators-content {
        padding: 0.75rem;
    }
    
    .page-header {
        padding: 1rem 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.35rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .coming-soon-badge {
        margin-left: 0;
        margin-top: 0.35rem;
    }
    
    .calculator-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .calculator-card {
        padding: 0.5rem 0.875rem;
    }
    
    .card-icon {
        width: 38px;
        height: 38px;
    }
    
    .card-body h3 {
        font-size: 0.8rem;
    }
    
    .card-body p {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .calculators-header .app-title {
        font-size: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .section-title h2 {
        font-size: 1rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .calculator-card {
        padding: 0.5rem 0.875rem;
        gap: 0.625rem;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .card-body h3 {
        font-size: 0.8rem;
    }
    
    .card-body p {
        font-size: 0.65rem;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
    }
    
    .card-arrow {
        display: none;
    }
}
