/* Earn PHP CSS Styles */
/* Prefix: s4dd- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #F5DEB3;
    background-color: #2E4057;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: #FFB347;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

/* Layout */
.s4dd-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s4dd-section {
    padding: 4rem 0;
}

/* Header */
.s4dd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(46, 64, 87, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.s4dd-header.s4dd-scrolled {
    background-color: #2E4057;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.s4dd-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s4dd-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s4dd-logo img {
    height: 3.2rem;
    width: auto;
}

.s4dd-site-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFB347;
}

.s4dd-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.s4dd-menu-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.s4dd-menu-toggle:hover {
    color: #FFB347;
}

/* Buttons */
.s4dd-btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.s4dd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.s4dd-btn:active {
    transform: translateY(0);
}

.s4dd-btn-primary {
    background: linear-gradient(135deg, #FFB347 0%, #FF8C00 100%);
    color: #2E4057;
}

.s4dd-btn-primary:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
}

.s4dd-btn-secondary {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
    color: #2E4057;
}

.s4dd-btn-secondary:hover {
    background: linear-gradient(135deg, #F0F0F0 0%, #FFFFFF 100%);
}

.s4dd-btn-affiliate {
    background: linear-gradient(135deg, #FFB347 0%, #FF8C00 100%);
    color: #2E4057;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: s4dd-pulse 2s infinite;
}

@keyframes s4dd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 179, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}

/* Mobile Menu */
#webdd8-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #2E4057;
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

#webdd8-mobile-menu.s4dd-active {
    right: 0;
}

.s4dd-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.s4dd-menu-overlay.s4dd-active {
    display: block;
}

.s4dd-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.s4dd-menu-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.4rem;
    cursor: pointer;
}

.s4dd-menu-nav ul {
    list-style: none;
}

.s4dd-menu-nav li {
    margin-bottom: 1rem;
}

.s4dd-menu-nav a {
    display: block;
    padding: 1rem;
    color: #F5DEB3;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.s4dd-menu-nav a:hover {
    color: #FFB347;
}

/* Hero Carousel */
.s4dd-hero-section {
    margin-top: 7rem;
    position: relative;
    height: 40rem;
    overflow: hidden;
    border-radius: 1rem;
}

.s4dd-hero-carousel {
    position: relative;
    height: 100%;
}

.s4dd-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s4dd-hero-slide.s4dd-active {
    opacity: 1;
}

.s4dd-hero-content {
    text-align: center;
    padding: 2rem;
    background-color: rgba(46, 64, 87, 0.8);
    border-radius: 1rem;
    max-width: 90%;
}

.s4dd-hero-title {
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.s4dd-hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #F5DEB3;
}

.s4dd-carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.s4dd-carousel-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.s4dd-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.s4dd-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.s4dd-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s4dd-dot.s4dd-active {
    background-color: #FFB347;
    transform: scale(1.2);
}

/* Game Grid */
.s4dd-games-section {
    padding: 3rem 0;
}

.s4dd-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.s4dd-section-title {
    font-size: 3.2rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.s4dd-section-subtitle {
    font-size: 1.8rem;
    color: #F5DEB3;
}

.s4dd-game-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.s4dd-game-filter-btn {
    padding: 1rem 2rem;
    background-color: rgba(245, 222, 179, 0.1);
    border: 1px solid rgba(245, 222, 179, 0.3);
    color: #F5DEB3;
    border-radius: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.s4dd-game-filter-btn.s4dd-active,
.s4dd-game-filter-btn:hover {
    background-color: #FFB347;
    color: #2E4057;
    border-color: #FFB347;
}

.s4dd-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.s4dd-game-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.s4dd-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.s4dd-game-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.s4dd-game-item:hover .s4dd-game-image {
    transform: scale(1.05);
}

.s4dd-game-info {
    padding: 1.5rem;
}

.s4dd-game-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 0.5rem;
}

.s4dd-game-category {
    font-size: 1.2rem;
    color: #F5DEB3;
    text-align: center;
    text-transform: capitalize;
}

/* Content Modules */
.s4dd-content-module {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(245, 222, 179, 0.1);
}

.s4dd-module-title {
    font-size: 2.4rem;
    color: #FFB347;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s4dd-module-icon {
    font-size: 2.8rem;
}

.s4dd-module-content {
    color: #F5DEB3;
    line-height: 1.8;
}

.s4dd-module-content p {
    margin-bottom: 1.5rem;
}

.s4dd-module-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.s4dd-module-content li {
    margin-bottom: 0.5rem;
}

.s4dd-highlight-box {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.1) 0%, rgba(255, 179, 71, 0.05) 100%);
    border-left: 4px solid #FFB347;
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Accordion */
.s4dd-accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 222, 179, 0.2);
    border-radius: 0.8rem;
    overflow: hidden;
}

.s4dd-accordion-header {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.s4dd-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.s4dd-accordion-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF;
}

.s4dd-arrow {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.s4dd-arrow.s4dd-active {
    transform: rotate(180deg);
}

.s4dd-accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.s4dd-accordion-content.s4dd-active {
    padding: 1.5rem;
    max-height: 50rem;
}

/* Bottom Navigation */
.s4dd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2E4057;
    border-top: 1px solid rgba(245, 222, 179, 0.2);
    z-index: 1000;
    height: 6.4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

.s4dd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 6rem;
    min-height: 6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 1rem;
}

.s4dd-bottom-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.s4dd-bottom-nav-item.s4dd-active {
    background-color: rgba(255, 179, 71, 0.2);
    color: #FFB347;
}

.s4dd-bottom-nav-icon {
    font-size: 2.4rem;
    transition: transform 0.3s ease;
}

.s4dd-bottom-nav-item:hover .s4dd-bottom-nav-icon {
    transform: translateY(-2px);
}

.s4dd-bottom-nav-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Partners Section */
.s4dd-partners-section {
    padding: 3rem 0;
    text-align: center;
}

.s4dd-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.s4dd-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    min-height: 6rem;
}

.s4dd-partner-item img {
    max-width: 100%;
    max-height: 4rem;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.s4dd-partner-item:hover img {
    filter: brightness(1);
}

/* Footer */
.s4dd-footer {
    background-color: #1a2838;
    padding: 3rem 0 2rem;
    margin-bottom: 8rem;
    text-align: center;
}

.s4dd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.s4dd-footer-links a {
    color: #F5DEB3;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.s4dd-footer-links a:hover {
    color: #FFB347;
}

.s4dd-copyright {
    font-size: 1.2rem;
    color: rgba(245, 222, 179, 0.6);
    margin-top: 2rem;
}

/* Utility Classes */
.s4dd-text-center { text-align: center; }
.s4dd-text-left { text-align: left; }
.s4dd-text-right { text-align: right; }

.s4dd-mb-1 { margin-bottom: 1rem; }
.s4dd-mb-2 { margin-bottom: 2rem; }
.s4dd-mb-3 { margin-bottom: 3rem; }

.s4dd-mt-1 { margin-top: 1rem; }
.s4dd-mt-2 { margin-top: 2rem; }
.s4dd-mt-3 { margin-top: 3rem; }

.s4dd-d-block { display: block; }
.s4dd-d-none { display: none; }

/* Loading State */
.s4dd-loading {
    position: relative;
    color: transparent !important;
}

.s4dd-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid #2E4057;
    border-top-color: transparent;
    border-radius: 50%;
    animation: s4dd-spin 0.8s linear infinite;
}

@keyframes s4dd-spin {
    to { transform: rotate(360deg); }
}

/* Copy Feedback */
.s4dd-copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFB347;
    color: #2E4057;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-weight: 600;
    z-index: 9999;
    animation: s4dd-fadeInOut 2s ease;
}

@keyframes s4dd-fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Error State */
.s4dd-error {
    border-color: #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }

    .s4dd-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .s4dd-partners-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .s4dd-hero-title {
        font-size: 2.8rem;
    }

    .s4dd-section-title {
        font-size: 2.4rem;
    }

    .s4dd-content-module {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .s4dd-bottom-nav {
        display: none;
    }

    .s4dd-container {
        max-width: 1200px;
    }

    .s4dd-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .s4dd-partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.s4dd-btn:focus,
.s4dd-menu-toggle:focus,
.s4dd-game-filter-btn:focus,
.s4dd-carousel-btn:focus,
.s4dd-bottom-nav-item:focus {
    outline: 2px solid #FFB347;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .s4dd-btn-primary {
        border: 2px solid #FFFFFF;
    }

    .s4dd-game-item {
        border: 1px solid #FFFFFF;
    }

    .s4dd-content-module {
        border: 2px solid #FFB347;
    }
}