/* ==========================================================================
   Contrast and Readability Fixes for EineCosmetics
   ========================================================================== */

/* Hero Section Contrast Fixes - Enhanced */
.hero {
    background: linear-gradient(135deg, #EF695A 0%, #D54A3B 100%);
    position: relative;
}

/* Add dark overlay for better contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero .container,
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid white;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-title {
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.hero-title .highlight {
    color: var(--warning-color);  /* Yellow for better contrast */
    background: none;
    -webkit-text-fill-color: var(--warning-color);
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--warning-color);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 0, 0.5);
}

.hero-subtitle {
    color: white;
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    display: inline-block;
}

.stat-number {
    color: var(--warning-color);  /* Yellow for better visibility */
    font-weight: 900;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.stat-label {
    color: white;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Button Contrast Improvements */
.btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid white;
}

.btn-primary:hover {
    background: var(--bg-gray);
    color: var(--primary-dark);
    border-color: var(--bg-gray);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
}

/* When buttons are in Hero section */
.hero .btn-primary {
    background: white;
    color: var(--primary-color);
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section Contrast */
.feature-card {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-title {
    color: var(--text-primary);
    font-weight: 700;
}

.feature-list li {
    color: var(--text-primary);
    font-weight: 500;
}

.feature-list i {
    color: var(--success);
    font-weight: bold;
}

.feature-detail {
    color: var(--primary-color);
    font-weight: 700;
}

/* Section Titles Contrast */
.section-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.subtitle-en {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.title-ja {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

/* Dark Background Text Contrast */
.bg-dark {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
}

.bg-dark .section-title .subtitle-en {
    color: var(--primary-color);
}

.bg-dark .section-title .title-ja {
    color: white;
}

.bg-dark h3 {
    color: white;
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.9);
}

/* Credentials Section */
.credentials.bg-dark .credential-item h3 {
    color: white;
    font-weight: 600;
}

.credentials.bg-dark .credential-number {
    color: #FFB5A7;
    font-weight: 900;
}

.credentials.bg-dark .association-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

/* CTA Section Contrast */
.cta-section {
    background: linear-gradient(135deg, #EF695A 0%, #D54A3B 100%);
}

.cta-section .cta-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-subtitle {
    color: white;
    opacity: 1;
}

.cta-section .btn-white {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
}

.cta-section .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
}

/* Product Tabs */
.tab-btn {
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Product Showcase */
.showcase-info h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.showcase-info p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Timeline */
.timeline-content h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-secondary);
}

.timeline-duration {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

/* News Section */
.news-title a {
    color: var(--text-primary);
    font-weight: 700;
}

.news-excerpt {
    color: var(--text-secondary);
}

.news-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* Company Section */
.company-brief .lead {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Background Colors */
.bg-gray {
    background: var(--bg-gray-alt);
}

.bg-primary {
    background: linear-gradient(135deg, #EF695A 0%, #D54A3B 100%);
}

.text-white {
    color: white !important;
}

.text-white h2,
.text-white h3,
.text-white p {
    color: white !important;
}

/* Ensure all links are visible */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* White text on colored backgrounds */
.hero a,
.bg-primary a,
.bg-dark a,
.cta-section a {
    color: white;
}

.hero a:hover,
.bg-primary a:hover,
.bg-dark a:hover,
.cta-section a:hover {
    opacity: 0.9;
}

/* Scroll Indicator */
.scroll-indicator {
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
}

.scroll-line {
    background: white;
}

/* Make sure icons are visible */
.hero .btn i,
.cta-section .btn i {
    margin-right: var(--space-2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-title {
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    }
    
    .btn-primary {
        border: 3px solid white;
    }
    
    .btn-secondary {
        border: 3px solid white;
    }
    
    .feature-card {
        border: 2px solid var(--border-color);
    }
}