/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #330000 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(204, 0, 0, 0.1) 100%);
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.header-text {
    text-align: left;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ff6666 50%, #ff0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.report-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

.divider {
    color: #475569;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    background: rgba(15, 23, 42, 0.8);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Section Styles */
.section {
    margin: 40px 0;
    background: rgba(15, 23, 42, 0.6);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #f1f5f9;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(204, 0, 0, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.summary-card h3 {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6666;
    margin: 8px 0;
}

.detail {
    color: #64748b;
    font-size: 0.9rem;
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    width: 50px;
    text-align: center;
}

.model-info {
    flex: 1;
    margin-left: 20px;
}

.model-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.model-info p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.market-share {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34d399;
    min-width: 80px;
    text-align: right;
}

/* Chart Container */
.chart-container {
    background: rgba(30, 41, 59, 0.8);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Growth Grid */
.growth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.growth-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.growth-card h3 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.growth-rate {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 5px;
}

.growth-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-tier {
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-tier.budget {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.pricing-tier.standard {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.pricing-tier.premium {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 101, 101, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.pricing-tier.free {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

.pricing-tier h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.tier-range {
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 500;
}

.pricing-tier ul {
    list-style: none;
}

.pricing-tier li {
    padding: 5px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Comparison Table */
.comparison-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(59, 130, 246, 0.2);
    font-weight: 600;
    color: #f1f5f9;
}

.comparison-table td {
    color: #cbd5e1;
}

.price-high { color: #ef4444; font-weight: 600; }
.price-medium { color: #f59e0b; font-weight: 600; }
.price-low { color: #22c55e; font-weight: 600; }
.price-free { color: #8b5cf6; font-weight: 600; }
.price-premium { color: #dc2626; font-weight: 600; }
.price-enterprise { color: #6366f1; font-weight: 600; }
.price-subscription { color: #0ea5e9; font-weight: 600; }

.risk-low { color: #22c55e; font-weight: 600; }
.risk-medium { color: #f59e0b; font-weight: 600; }
.risk-high { color: #ef4444; font-weight: 600; }

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.insight-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.insight-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 24px;
    width: auto;
    margin-bottom: 12px;
    border-radius: 4px;
}

.footer-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        height: 28px;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .model-info {
        margin-left: 0;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .nav-tabs {
        padding: 5px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* PDF Download Button */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    text-decoration: none;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff3333, #ff0000);
}

.pdf-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pdf-download-btn svg {
    flex-shrink: 0;
}

.report-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 768px) {
    .pdf-download-btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .report-meta {
        flex-direction: column;
        align-items: center;
    }
}

/* Download Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff0000;
}

.modal-header {
    text-align: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.modal-logo {
    height: 40px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.download-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #888;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff0000;
    border-color: #ff0000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 2px;
    top: -2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff3333, #ff0000);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-footer {
    text-align: center;
    padding: 20px 30px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 15px;
    }
    
    .modal-header,
    .download-form,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
