/* ===== Scientific Notation Calculator Specific Styles ===== */
#scientific-notation-calculator {
    /* Scope all scientific-notation-specific styles under this root */
}

/* Calculator Hero Section */
.calculator-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 252, 0.95) 100%);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.calculator-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-coral) 0%, #dc2626 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-icon {
    color: var(--success-green);
    font-weight: 700;
}

/* Calculator Main Section */
.calculator-main {
    padding: var(--spacing-xl) 0;
    background: var(--background-gray);
}

.calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-panel {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 700px;
}

/* Calculator Tabs */
.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.calc-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-tab:hover {
    background: var(--background-gray);
    color: var(--text-primary);
}

.calc-tab.active {
    background: var(--primary-coral);
    color: white;
    border-color: var(--primary-coral);
}

/* Form Styles */
.scientific-notation-calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-mono);
}

/* Calculate Button */
.calculate-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-coral);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Results Panel */
.results-panel {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 700px;
}

.result-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.result-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

/* Result Display */
.result-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-coral);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.result-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.btn-primary,
.btn-secondary {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-coral);
    color: white;
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--background-gray);
}

/* About Section */
.about-section {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    padding: var(--spacing-xl);
    background: var(--background-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Statistics Section */
.statistics-section {
    padding: var(--spacing-2xl) 0;
    background: var(--background-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto var(--spacing-2xl);
}

.stat-card {
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-coral);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.fact-card {
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-coral);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.fact-icon {
    color: var(--success-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-gray);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-coral);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    background: var(--background-gray);
}

/* Reviews Section */
.reviews-section {
    padding: var(--spacing-2xl) 0;
    background: var(--background-gray);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto var(--spacing-2xl);
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.rating-summary {
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.rating-stars {
    margin-bottom: var(--spacing-sm);
}

.star {
    color: #d1d5db;
    font-size: 1.5rem;
}

.star.filled {
    color: #fbbf24;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.rating-breakdown {
    flex: 1;
    max-width: 400px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.bar-label {
    width: 30px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
}

.bar-count {
    width: 40px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Reviews Carousel */
.reviews-carousel-container {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-carousel {
    display: flex;
    gap: var(--spacing-xl);
    animation: scroll 30s linear infinite;
}

.reviews-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    flex: 0 0 350px;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.reviewer-info {
    display: flex;
    gap: var(--spacing-md);
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-coral);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    color: #fbbf24;
    font-size: 1rem;
}

.review-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.helpful-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.helpful-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--background-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: white;
    border-color: var(--primary-coral);
}

/* Related Section */
.related-section {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    padding: var(--spacing-xl);
    background: var(--background-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-coral);
}

.related-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.related-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.related-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-title {
        font-size: 2rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .calculator-tabs {
        justify-content: center;
    }
    
    .calc-tab {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: center;
    }
    
    .rating-breakdown {
        width: 100%;
    }
}