/**
 * VN88 Theme Main Stylesheet
 *
 * @package VN88_Theme
 */

/* ================================
   Additional Styles
================================ */

/* Header scrolled state */
.site-header.scrolled {
    background: rgba(196, 30, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Animation classes */
.feature-card,
.step-item,
.tip-item,
.card-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animated,
.step-item.animated,
.tip-item.animated,
.card-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

.step-item:nth-child(1) { transition-delay: 0.1s; }
.step-item:nth-child(2) { transition-delay: 0.2s; }
.step-item:nth-child(3) { transition-delay: 0.3s; }
.step-item:nth-child(4) { transition-delay: 0.4s; }

/* Button hover effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

/* Card hover lift effect */
.card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Feature icon pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(196, 30, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    }
}

.feature-card:hover .feature-icon {
    animation: pulse 1.5s infinite;
}

/* Timeline dot animation */
.timeline-dot {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: #ffd700;
}

/* FAQ smooth transition */
.faq-answer {
    display: none;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Table responsive */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .comparison-table th,
    .comparison-table td {
        min-width: 120px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .cta-section {
        display: none;
    }
    
    .page-content,
    .content-section {
        padding: 20px 0;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c41e3a;
    color: #fff;
    padding: 8px 15px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #c41e3a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error and success states */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c41e3a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a01830;
}

/* Selection color */
::selection {
    background: #c41e3a;
    color: #fff;
}

::-moz-selection {
    background: #c41e3a;
    color: #fff;
}
