/* Topic Consultations Page Styles */

/* Page Layout */
.topic-consultations-page {
    min-height: 100vh;
    padding-top: 80px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.header-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-badge i {
    font-size: 1.1rem;
}

.feature-badge span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    text-align: center;
    background: #f8fafc;
}

.how-it-works h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.75rem;
    color: #2d3748;
}

.step p {
    color: #718096;
    line-height: 1.5;
}

/* Topics Section */
.topics-section {
    padding: 4rem 0;
    text-align: center;
}

.topics-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.topics-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

/* Topic Card */
.topic-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #2d3748; /* Ensure default text color is dark */
}

/* Force all text elements in topic cards to have proper colors */
.topic-card * {
    color: inherit;
}

.topic-card h1,
.topic-card h2,
.topic-card h3,
.topic-card h4,
.topic-card h5,
.topic-card h6 {
    color: #2d3748 !important;
}

.topic-card p,
.topic-card span,
.topic-card div {
    color: #718096 !important;
}

/* Specific overrides for important elements */
.topic-card .topic-description {
    color: #718096 !important;
}

.topic-card .topics-count {
    color: #4a5568 !important;
    background: #f7fafc !important;
}

.topic-card .price-range {
    color: var(--topic-color) !important;
}

.topic-card .start-btn {
    color: white !important;
    background: var(--topic-gradient) !important;
}

/* Additional safety rule to override any external styles */
.topics-grid .topic-card,
.topics-grid .topic-card *,
div[class*="topic"] {
    text-shadow: none !important;
}

.topics-grid .topic-card {
    background: white !important;
}

/* Ensure contrast for readability */
.topic-card h3 {
    text-shadow: none !important;
    font-weight: 600 !important;
}

.topic-card .topic-description {
    font-weight: normal !important;
    opacity: 1 !important;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--topic-gradient);
    opacity: 0.8;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--topic-color);
}

.topic-icon {
    width: 60px;
    height: 60px;
    background: var(--topic-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.topic-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2d3748 !important;
}

.topic-description {
    color: #718096 !important;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.topics-count {
    background: #f7fafc;
    color: #4a5568 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.topic-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.price-range {
    font-weight: 600;
    color: var(--topic-color) !important;
    font-size: 1.1rem;
}

.start-btn {
    background: var(--topic-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Free Trial CTA */
.free-trial-cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 4rem 0;
    text-align: center;
    margin: 4rem 0;
    border-radius: 30px;
}

.cta-content {
    color: white;
    max-width: 500px;
    margin: 0 auto;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-content .btn {
    background: white;
    color: #4facfe;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Premium Promotion */
.premium-promotion {
    background: #f8fafc;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
}

.promotion-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.promotion-content p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.savings-highlight {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 2rem;
}

.savings-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.promotion-content .btn-secondary {
    background: #667eea;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.promotion-content .btn-secondary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.savings-comparison {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.comparison-item {
    text-align: center;
    padding: 1.5rem;
}

.comparison-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.comparison-item.premium h4 {
    color: #667eea;
}

.comparison-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    display: block;
}

.comparison-item.premium .price {
    color: #667eea;
}

.comparison-item .unit {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
    display: block;
}

.vs-divider {
    text-align: center;
    font-weight: 700;
    color: #a0aec0;
    padding: 1rem 0;
    position: relative;
}

.vs-divider::before,
.vs-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #e2e8f0;
}

.vs-divider::before {
    left: 20px;
}

.vs-divider::after {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .header-features {
        gap: 1rem;
    }
    
    .feature-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .how-it-works {
        padding: 3rem 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .topic-card {
        padding: 1.5rem;
    }
    
    .premium-promotion {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    
    .free-trial-cta {
        margin: 4rem 1rem;
        padding: 3rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}
