/**
 * SuperPH11 Layout Stylesheet
 * Website: superph11.club
 * Prefix: sadf-
 */

/* CSS Variables */
:root {
    --sadf-primary: #FF6347;
    --sadf-secondary: #FF9500;
    --sadf-accent: #FFBF00;
    --sadf-bg-dark: #1B263B;
    --sadf-bg-medium: #2a3a52;
    --sadf-text-light: #F8F9FA;
    --sadf-text-muted: #FFB3BA;
    --sadf-gradient: linear-gradient(135deg, #FF6347 0%, #FF9500 100%);
    --sadf-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --sadf-radius: 8px;
    --sadf-radius-lg: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sadf-bg-dark);
    color: var(--sadf-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.sadf-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.sadf-wrapper {
    max-width: 430px;
    margin: 0 auto;
    padding-bottom: 8rem;
}

@media (max-width: 768px) {
    main, .sadf-main {
        padding-bottom: 8rem;
    }
}

/* Header */
.sadf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--sadf-bg-dark);
    border-bottom: 1px solid rgba(255, 99, 71, 0.3);
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.sadf-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.sadf-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.sadf-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sadf-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sadf-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sadf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sadf-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--sadf-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sadf-btn-primary {
    background: var(--sadf-gradient);
    color: white;
}

.sadf-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--sadf-shadow);
}

.sadf-btn-outline {
    background: transparent;
    color: var(--sadf-primary);
    border: 2px solid var(--sadf-primary);
}

.sadf-btn-outline:hover {
    background: var(--sadf-primary);
    color: white;
}

.sadf-menu-toggle {
    background: none;
    border: none;
    color: var(--sadf-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sadf-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sadf-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.sadf-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sadf-bg-medium);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sadf-menu-open {
    right: 0;
}

.sadf-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--sadf-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.sadf-menu-nav {
    margin-top: 4rem;
}

.sadf-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--sadf-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.sadf-menu-link:hover {
    color: var(--sadf-primary);
}

/* Carousel */
.sadf-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 6rem;
}

.sadf-slide {
    display: none;
    cursor: pointer;
}

.sadf-slide img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.sadf-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.sadf-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sadf-dot-active {
    background: var(--sadf-primary);
    transform: scale(1.2);
}

/* Section Styles */
.sadf-section {
    padding: 2rem 1.5rem;
}

.sadf-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sadf-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sadf-section-subtitle {
    font-size: 1.4rem;
    color: var(--sadf-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.sadf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sadf-game-card {
    background: var(--sadf-bg-medium);
    border-radius: var(--sadf-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sadf-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sadf-shadow);
}

.sadf-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sadf-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--sadf-text-light);
}

/* Category Section */
.sadf-category-section {
    margin-bottom: 2rem;
}

.sadf-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sadf-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sadf-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sadf-view-all {
    color: var(--sadf-primary);
    font-size: 1.3rem;
    text-decoration: none;
}

/* Feature Cards */
.sadf-feature-card {
    background: var(--sadf-bg-medium);
    border-radius: var(--sadf-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sadf-feature-icon {
    font-size: 2.4rem;
    color: var(--sadf-primary);
    margin-bottom: 0.8rem;
}

.sadf-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sadf-feature-text {
    font-size: 1.3rem;
    color: var(--sadf-text-muted);
    line-height: 1.6;
}

/* Promo Banner */
.sadf-promo-banner {
    background: var(--sadf-gradient);
    border-radius: var(--sadf-radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}

.sadf-promo-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.sadf-promo-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.sadf-promo-btn {
    background: white;
    color: var(--sadf-primary);
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--sadf-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sadf-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--sadf-shadow);
}

/* RTP Stats */
.sadf-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sadf-rtp-item {
    background: var(--sadf-bg-medium);
    border-radius: var(--sadf-radius);
    padding: 1.2rem;
    text-align: center;
}

.sadf-rtp-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sadf-accent);
}

.sadf-rtp-label {
    font-size: 1.2rem;
    color: var(--sadf-text-muted);
}

/* Footer */
.sadf-footer {
    background: var(--sadf-bg-medium);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 99, 71, 0.2);
}

.sadf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sadf-footer-link {
    color: var(--sadf-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sadf-footer-link:hover {
    color: var(--sadf-primary);
}

.sadf-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sadf-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sadf-partner-logo:hover {
    opacity: 1;
}

.sadf-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--sadf-text-muted);
}

/* Bottom Navigation */
.sadf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--sadf-bg-medium) 0%, var(--sadf-bg-dark) 100%);
    border-top: 2px solid var(--sadf-primary);
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.sadf-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.sadf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--sadf-radius);
    text-decoration: none;
}

.sadf-nav-item:hover {
    background: rgba(255, 99, 71, 0.1);
}

.sadf-nav-item.active {
    background: rgba(255, 99, 71, 0.2);
}

.sadf-nav-item.active .sadf-nav-icon {
    color: var(--sadf-primary);
    transform: scale(1.1);
}

.sadf-nav-icon {
    font-size: 24px;
    color: var(--sadf-text-light);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.sadf-nav-text {
    font-size: 10px;
    color: var(--sadf-text-muted);
    text-align: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .sadf-bottom-nav {
        display: none;
    }
}

/* Text Links */
.sadf-text-link {
    color: var(--sadf-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sadf-text-link:hover {
    color: var(--sadf-secondary);
    text-decoration: underline;
}

/* List Styles */
.sadf-list {
    list-style: none;
    padding: 0;
}

.sadf-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

.sadf-list-item:last-child {
    border-bottom: none;
}

/* FAQ Accordion */
.sadf-faq-item {
    background: var(--sadf-bg-medium);
    border-radius: var(--sadf-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.sadf-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sadf-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--sadf-text-muted);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .sadf-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sadf-game-name {
        font-size: 1rem;
    }
}

/* Animation utilities */
@keyframes sadf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sadf-animate-pulse {
    animation: sadf-pulse 2s infinite;
}
