/*
 * Bonus Page Styles
 * Maintains consistency with the Yi theme design system
 */

/* Base Styles */
.bonus-page {
    line-height: 1.6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.bonus-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bonus-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/front-page/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px auto;
    opacity: 0.05;
    pointer-events: none;
}

.bonus-hero__content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    margin-bottom: 30px;
}

.bonus-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bonus-logo:hover {
    transform: scale(1.05);
}

.bonus-icon-fallback {
    display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    font-size: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bonus-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bonus-hero__description {
    max-width: 600px;
    margin: 0 auto;
}

.bonus-hero__description p {
    font-size: 1.25rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Main Content Section */
.bonus-content {
    padding: 80px 0;
    background: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.bonus-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.bonus-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bonus-featured-image .featured-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bonus-featured-image:hover .featured-img {
    transform: scale(1.02);
}

.bonus-entry-content {
    padding: 40px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2c3e50;
}

.bonus-entry-content h1,
.bonus-entry-content h2,
.bonus-entry-content h3,
.bonus-entry-content h4,
.bonus-entry-content h5,
.bonus-entry-content h6 {
    color: #2c3e50;
    margin: 32px 0 16px;
    font-weight: 600;
}

.bonus-entry-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.bonus-entry-content p {
    margin: 0 0 20px;
}

.bonus-entry-content ul,
.bonus-entry-content ol {
    margin: 0 0 20px 20px;
}

.bonus-entry-content li {
    margin-bottom: 8px;
}

.bonus-entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1em;
}

.bonus-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

.bonus-entry-footer {
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.edit-link a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-link a:hover {
    background: #007cba;
    color: white;
}

/* Features Section */
.bonus-features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #007cba;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.icon-symbol {
    font-size: 32px;
    color: white;
}

.feature-content h3 {
    margin: 0 0 16px;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Call to Action Section */
.bonus-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    border-color: #007cba;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a8b, #007cba);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Page Links */
.page-links {
    margin: 32px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links a,
.page-links > span {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 16px;
    background: white;
    color: #007cba;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
}

.page-links > span {
    background: #007cba;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .bonus-hero {
        padding: 80px 0 60px;
    }
    
    .bonus-hero__title {
        font-size: 2.5rem;
    }
    
    .bonus-content,
    .bonus-features,
    .bonus-cta {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .bonus-hero__title {
        font-size: 2rem;
    }
    
    .bonus-hero__description p {
        font-size: 1.125rem;
    }
    
    .bonus-entry-content {
        padding: 24px;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bonus-hero {
        padding: 60px 0 40px;
    }
    
    .bonus-hero__title {
        font-size: 1.75rem;
    }
    
    .bonus-entry-content {
        padding: 16px;
    }
    
    .feature-item {
        padding: 24px 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .bonus-content,
    .bonus-features,
    .bonus-cta {
        padding: 40px 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bonus-hero {
        background: #f8f9fa;
    }
    
    .feature-item {
        border: 2px solid #333;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .bonus-logo,
    .feature-icon,
    .btn {
        transition: none;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}



