
body {
    padding: 1rem;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.card h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

 
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.card h3 {
     
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.card h3:first-child {
    margin-top: 0;
}

.card p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 1.1rem;
}
.header img { width: 100%; height: auto;
}
 
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.feature-item {
    padding: 12px 0 12px 40px;
    position: relative;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f3f4f6;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;  
    font-weight: bold;
    font-size: 1.2rem;
}
 
.card a {
    color: #2563eb;  
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.card a:hover {
    color: #1d4ed8;  
    text-decoration: underline;
}

.card strong {
    color: #2563eb; 
    font-weight: 600;
}

 
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}



    .research-table-container { overflow-x: auto; margin: 25px 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .research-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; min-width: 600px; }
    .research-table th { background: #f8f9fa; color: #333; text-align: left; padding: 12px 15px; border-bottom: 2px solid #edf2f7; }
    .research-table td { padding: 12px 15px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
    .research-table tr:hover { background-color: #fcfcfc; }
    .rank-cell { font-weight: bold; color: #718096; width: 40px; }
    .niche-cell { font-weight: 600; color: #2d3748; }
    .count-cell { font-weight: 700; color: #3182ce; }
    .age-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; color: #4a5568; }
    
    .wave-box { background: #f7fafc; border-left: 4px solid #3182ce; padding: 15px; margin: 15px 0; }
    .wave-title { font-weight: bold; color: #2c5282; display: block; margin-bottom: 5px; font-size: 1.1rem; }
    
    .analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
 
    .stat-card { background: #fff; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #edf2f7; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .stat-number { font-size: 2rem; font-weight: bold; color: #2b6cb0; display: block; margin-bottom: 5px; }

  .analytics-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px; margin-top: 30px;   
    flex-wrap: wrap;
    position: relative;
}

.nav-pill {
    background-color: #ffffff;
    color: #555;
    padding: 10px 24px;
    border-radius: 50px;  
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s ease-in-out;
}

.nav-pill:hover {
    background-color: #f8f9fa;
    color: var(--accent-color, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

 
.nav-pill.active {
    background-color: var(--accent-color, #007bff);
    color: #ffffff;
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* --- Research Popover --- */
.nav-popover-wrap {
    position: relative;
      display: inline-flex;
}
.nav-popover-wrap .nav-pill-btn {
    white-space: nowrap;  
}
.nav-pill-btn {
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-pill-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-pill-btn[aria-expanded="true"] .nav-pill-arrow {
    transform: rotate(180deg);
}

.nav-pill-btn[aria-expanded="true"] {
    background-color: var(--accent-color, #007bff);
    color: #ffffff;
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.research-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px;
    width: 300px;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.06);
}

.research-popover.open {
    display: block;
}

.research-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.research-item:hover {
    background-color: #f5f7ff;
}

.research-item__title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-color, #007bff);
    margin-bottom: 3px;
}

.research-item__desc {
    display: block;
    font-size: 12px;
    color: var(--text-light, #888);
    line-height: 1.4;
}

 

@media (max-width: 480px) {
.nav-popover-wrap {
        position: static; 
    }   
    .research-popover {
        position: absolute;
        top: calc(100% + 15px); 
        left: 50%;
        transform: translateX(-50%);  
        width: 90%;  
        max-width: 320px;
        z-index: 100;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);  
    }
     .nav-pill {       padding: 8px 12px; }
}
 
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .feature-item {
        padding-left: 35px;
        font-size: 1rem;
    }
    .analysis-grid { grid-template-columns: 1fr;
}

 

