/**
 * BGWIN Main Stylesheet
 * Prefix: s5cf-
 * Colors: #FFE4B5, #FA8072, #2D2D2D, #AD1457, #D2B48C
 */

:root {
    --s5cf-primary: #FFE4B5;
    --s5cf-accent: #FA8072;
    --s5cf-bg-dark: #2D2D2D;
    --s5cf-secondary: #AD1457;
    --s5cf-highlight: #D2B48C;
    --s5cf-gradient: linear-gradient(135deg, #AD1457 0%, #FA8072 100%);
    --s5cf-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --s5cf-radius: 12px;
    --s5cf-transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--s5cf-bg-dark); color: var(--s5cf-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--s5cf-transition); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.s5cf-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(45, 45, 45, 0.95); backdrop-filter: blur(10px); padding: 12px 16px; transition: var(--s5cf-transition); }
.s5cf-header-scrolled { background: rgba(45, 45, 45, 0.98); box-shadow: var(--s5cf-shadow); }
.s5cf-header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.s5cf-logo { display: flex; align-items: center; gap: 10px; }
.s5cf-logo img { width: 32px; height: 32px; }
.s5cf-logo-text { font-size: 24px; font-weight: 700; background: var(--s5cf-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.s5cf-header-actions { display: flex; align-items: center; gap: 12px; }

.s5cf-btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: var(--s5cf-transition); }
.s5cf-btn-register { background: var(--s5cf-gradient); color: #fff; }
.s5cf-btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(173, 20, 87, 0.4); }
.s5cf-btn-login { background: transparent; border: 2px solid var(--s5cf-accent); color: var(--s5cf-accent); }
.s5cf-btn-login:hover { background: var(--s5cf-accent); color: #fff; }
.s5cf-btn-large { padding: 16px 32px; font-size: 16px; }
.s5cf-menu-toggle { display: none; background: transparent; border: none; color: var(--s5cf-primary); font-size: 24px; cursor: pointer; padding: 8px; }

/* Navigation */
.s5cf-desktop-nav { display: flex; align-items: center; gap: 24px; }
.s5cf-nav-link { color: var(--s5cf-primary); font-weight: 500; position: relative; }
.s5cf-nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--s5cf-accent); transition: var(--s5cf-transition); }
.s5cf-nav-link:hover::after { width: 100%; }

/* Mobile Menu */
.s5cf-mobile-menu { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--s5cf-bg-dark); z-index: 9999; transition: var(--s5cf-transition); padding: 80px 20px 20px; overflow-y: auto; }
.s5cf-menu-active { right: 0; }
.s5cf-mobile-menu .s5cf-nav-link { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255, 228, 181, 0.1); }
.s5cf-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 9998; opacity: 0; visibility: hidden; transition: var(--s5cf-transition); }
.s5cf-overlay-active { opacity: 1; visibility: visible; }
.s5cf-menu-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--s5cf-primary); font-size: 28px; cursor: pointer; }

/* Hero */
.s5cf-hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 16px 80px; background: linear-gradient(180deg, #2D2D2D 0%, #1a1a1a 100%); position: relative; overflow: hidden; }
.s5cf-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 50%, rgba(173, 20, 87, 0.2) 0%, transparent 50%); }
.s5cf-hero-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.s5cf-hero-title { font-size: 48px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.s5cf-hero-title span { background: var(--s5cf-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.s5cf-hero-subtitle { font-size: 18px; color: var(--s5cf-highlight); margin-bottom: 30px; max-width: 600px; }
.s5cf-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Categories & Games */
.s5cf-categories { padding: 60px 16px; background: var(--s5cf-bg-dark); }
.s5cf-section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 40px; }
.s5cf-section-title span { color: var(--s5cf-accent); }
.s5cf-category-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.s5cf-category-tab { padding: 12px 24px; background: rgba(255, 228, 181, 0.1); border: none; border-radius: var(--s5cf-radius); color: var(--s5cf-primary); cursor: pointer; font-weight: 500; transition: var(--s5cf-transition); }
.s5cf-category-tab:hover, .s5cf-tab-active { background: var(--s5cf-gradient); color: #fff; }
.s5cf-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }
.s5cf-game-card { background: rgba(255, 228, 181, 0.05); border-radius: var(--s5cf-radius); overflow: hidden; transition: var(--s5cf-transition); cursor: pointer; }
.s5cf-game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(250, 128, 114, 0.2); }
.s5cf-game-image { aspect-ratio: 1; object-fit: cover; width: 100%; }
.s5cf-game-name { padding: 12px; text-align: center; font-size: 14px; font-weight: 500; }

/* Features */
.s5cf-features { padding: 60px 16px; background: linear-gradient(180deg, #1a1a1a 0%, #2D2D2D 100%); }
.s5cf-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.s5cf-feature-card { background: rgba(255, 228, 181, 0.05); border-radius: var(--s5cf-radius); padding: 30px; text-align: center; border: 1px solid rgba(255, 228, 181, 0.1); transition: var(--s5cf-transition); }
.s5cf-feature-card:hover { border-color: var(--s5cf-accent); transform: translateY(-3px); }
.s5cf-feature-icon { font-size: 48px; margin-bottom: 20px; color: var(--s5cf-accent); }
.s5cf-feature-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.s5cf-feature-desc { font-size: 14px; color: var(--s5cf-highlight); }

/* Footer */
.s5cf-footer { background: #1a1a1a; padding: 40px 16px 100px; }
.s5cf-footer-content { max-width: 1200px; margin: 0 auto; }
.s5cf-partners { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.s5cf-partner-logo { height: 30px; opacity: 0.7; filter: grayscale(100%); transition: var(--s5cf-transition); }
.s5cf-partner-logo:hover { opacity: 1; filter: grayscale(0); }
.s5cf-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.s5cf-footer-link { color: var(--s5cf-highlight); font-size: 14px; }
.s5cf-footer-link:hover { color: var(--s5cf-accent); }
.s5cf-copyright { text-align: center; color: var(--s5cf-highlight); font-size: 14px; }

/* Mobile Bottom Navigation */
.s5cf-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: rgba(26, 26, 26, 0.98); backdrop-filter: blur(10px); display: flex; justify-content: space-around; align-items: center; z-index: 1000; border-top: 1px solid rgba(255, 228, 181, 0.1); }
.s5cf-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; min-height: 60px; color: var(--s5cf-highlight); cursor: pointer; transition: var(--s5cf-transition); }
.s5cf-nav-item:hover, .s5cf-nav-active { color: var(--s5cf-accent); }
.s5cf-nav-item i, .s5cf-nav-item .material-icons { font-size: 24px; margin-bottom: 4px; }
.s5cf-nav-item span { font-size: 11px; }

/* Toast & Accordion */
.s5cf-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--s5cf-accent); color: #fff; padding: 12px 24px; border-radius: var(--s5cf-radius); font-size: 14px; opacity: 0; transition: var(--s5cf-transition); z-index: 10000; }
.s5cf-toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.s5cf-accordion-header { padding: 18px; background: rgba(255, 228, 181, 0.05); border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; transition: var(--s5cf-transition); }
.s5cf-accordion-header:hover { background: rgba(255, 228, 181, 0.1); }
.s5cf-accordion-active { background: var(--s5cf-secondary); }
.s5cf-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 18px; }

/* Animations */
.s5cf-animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.s5cf-animated { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .s5cf-header { padding: 10px 12px; }
    .s5cf-desktop-nav { display: none; }
    .s5cf-menu-toggle { display: block; }
    .s5cf-hero-title { font-size: 32px; }
    .s5cf-hero-subtitle { font-size: 16px; }
    .s5cf-section-title { font-size: 24px; }
    .s5cf-game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .s5cf-category-tabs { gap: 8px; }
    .s5cf-category-tab { padding: 8px 16px; font-size: 13px; }
    main { padding-bottom: 80px; }
    .s5cf-footer { padding-bottom: 100px; }
}

@media (max-width: 430px) {
    .s5cf-hero-title { font-size: 28px; }
    .s5cf-btn { padding: 8px 16px; font-size: 13px; }
    .s5cf-game-grid { grid-template-columns: repeat(2, 1fr); }
    .s5cf-game-name { font-size: 12px; padding: 8px; }
}

@media (min-width: 769px) {
    .s5cf-bottom-nav { display: none; }
}
