/*
 * Rikvip Theme Styles
 * Main stylesheet
 */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.nav-desktop .primary-menu {
    display: flex;
    gap: 30px;
}

.nav-desktop .primary-menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-desktop .primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
}

.nav-desktop .primary-menu a:hover::after,
.nav-desktop .primary-menu a:focus::after {
    width: 100%;
}

.nav-desktop .primary-menu a:hover {
    color: #e94560;
}

/* Auth Buttons */
.header-auth {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #e94560;
}

.btn-login:hover {
    background: #e94560;
    color: #fff;
}

.btn-register {
    background: #e94560;
    color: #fff;
    border: 2px solid #e94560;
}

.btn-register:hover {
    background: #c73e54;
    border-color: #c73e54;
}

.btn-primary {
    background: #e94560;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: #c73e54;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

.btn-cta {
    background: #e94560;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.btn-cta:hover {
    background: #c73e54;
}

.btn-play {
    background: #0f3460;
    color: #fff;
    padding: 10px 25px;
}

.btn-play:hover {
    background: #e94560;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 20px;
}

.nav-mobile.active {
    display: block;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-item p {
    color: #666;
    line-height: 1.8;
}

/* Games Section */
.games-section {
    background: #f8f9fa;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.game-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Promotions Section */
.promotions-section {
    background: #fff;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.promo-card {
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.promo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.promo-card p {
    opacity: 0.9;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: #1a1a2e;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 500px;
}

/* Games Page */
.game-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.category-description {
    color: #666;
    margin-bottom: 30px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.game-detail {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.game-detail h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.game-detail p {
    color: #555;
    line-height: 1.8;
}

/* Promotions Page */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.promo-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.promo-item h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #e94560;
}

.promo-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.promo-content ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.promo-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* Guide Page */
.guide-section {
    margin-bottom: 60px;
}

.guide-section .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.guide-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.step p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.guide-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.method {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.method h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.method p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.game-guides {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-guide {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.game-guide h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0f3460;
}

.game-guide p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.game-guide ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.game-guide ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.tip h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.tip p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

.terms-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.terms-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.terms-content ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.terms-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Page CTA */
.page-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.page-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.page-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e94560;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #e94560;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .header-auth {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-cta {
        padding: 40px 20px;
    }

    .page-cta h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .game-card,
    .feature-item,
    .promo-card {
        padding: 20px;
    }
}

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

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

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

/* News Page Styles */
.news-featured {
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.featured-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #888;
}

.news-latest {
    margin-bottom: 60px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.news-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.news-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.news-updates {
    margin-bottom: 60px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.update-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.update-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.update-card p {
    color: #555;
    line-height: 1.8;
}

.news-tips {
    margin-bottom: 60px;
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tip-article {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.tip-article h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.tip-article p {
    color: #555;
    line-height: 1.8;
}

/* Contact Page Styles */
.contact-info {
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e94560;
}

.info-detail {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.info-card p:last-child {
    color: #666;
    font-size: 0.95rem;
}

.support-categories {
    margin-bottom: 60px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.support-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.support-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #0f3460;
}

.support-item ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.support-item ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.contact-faq {
    margin-bottom: 60px;
}

.working-hours {
    margin-bottom: 60px;
}

.hours-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.hours-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.hours-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0f3460;
}

.hours-item p {
    color: #555;
    line-height: 1.8;
}

.security-note {
    margin-bottom: 60px;
}

.note-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.note-content p {
    color: #555;
    margin-bottom: 15px;
}

.note-content ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.note-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Image Styles */
.hero-image {
    margin-bottom: 30px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.page-header-image {
    margin-bottom: 30px;
    text-align: center;
}

.page-header-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Images */
@media (max-width: 768px) {
    .hero-image img,
    .page-header-image img {
        border-radius: 8px;
    }

    .game-image img {
        height: 150px;
    }

    .page-header-image img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .game-image img {
        height: 120px;
    }

    .page-header-image img {
        max-height: 200px;
    }
}
