/* ============================================
   XOSO66 THEME - ADDITIONAL STYLES
   ============================================ */

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Stagger Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Header Scrolled State */
.site-header.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header {
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Form Error States */
.form-input.error {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.error-message {
    color: #e94560;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Loading States */
.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 rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.feature-card,
.game-card,
.promotion-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.game-card::before,
.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(233, 69, 96, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before,
.game-card:hover::before,
.promotion-card:hover::before {
    opacity: 1;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
}

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

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-color);
}

/* Selection */
::selection {
    background: var(--highlight-color);
    color: var(--text-color);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--highlight-color);
    color: var(--text-color);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

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

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--secondary-color);
    clip: auto !important;
    clip-path: none;
    color: var(--text-color);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .cta-section,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #1a1a1a;
        --text-color: #ffffff;
        --highlight-color: #ffff00;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode (already dark by default) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless of system preference */
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignnone {
    margin: 20px 0;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* WordPress Blocks */
.wp-block-quote {
    border-left: 4px solid var(--highlight-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.wp-block-pullquote {
    border-top: 4px solid var(--highlight-color);
    border-bottom: 4px solid var(--highlight-color);
    padding: 30px 0;
    margin: 30px 0;
    text-align: center;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.wp-block-table th {
    background: var(--secondary-color);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
}

.pagination .current {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--highlight-color);
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--text-color);
}

/* Widget Styles */
.widget {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--highlight-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-muted);
}

.widget a:hover {
    color: var(--highlight-color);
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-muted);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--highlight-color);
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.comment-form input[type="submit"] {
    background: var(--gradient-accent);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 .error-title {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 .error-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-404 .error-description {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
}

.search-form button {
    background: var(--gradient-accent);
    color: var(--text-color);
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Tag Cloud */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--text-color);
}

/* Calendar Widget */
.calendar_wrap table {
    width: 100%;
    text-align: center;
}

.calendar_wrap th,
.calendar_wrap td {
    padding: 10px;
}

.calendar_wrap caption {
    font-weight: 600;
    margin-bottom: 15px;
}

.calendar_wrap a {
    color: var(--highlight-color);
    font-weight: 600;
}
