/* Orionplay PH Theme CSS */
/* Class prefix: w7591- */

/* CSS Variables */
:root {
    --w7591-primary: #F4A460;
    --w7591-secondary: #DEB887;
    --w7591-dark: #1A1A1A;
    --w7591-darker: #0D0D0D;
    --w7591-light: #FFFFFF;
    --w7591-gray: #666666;
    --w7591-gray-light: #CCCCCC;
    --w7591-gray-dark: #333333;
    --w7591-success: #4CAF50;
    --w7591-warning: #FF9800;
    --w7591-error: #F44336;
    --w7591-gradient: linear-gradient(135deg, #F4A460 0%, #DEB887 100%);
    --w7591-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w7591-shadow-hover: 0 8px 30px rgba(244, 164, 96, 0.4);
    --w7591-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--w7591-dark);
    color: var(--w7591-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.w7591-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--w7591-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.w7591-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--w7591-secondary);
    margin-bottom: 1rem;
}

.w7591-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w7591-light);
    margin-bottom: 0.75rem;
}

.w7591-p {
    font-size: 1rem;
    color: var(--w7591-gray-light);
    margin-bottom: 1rem;
}

.w7591-text-center {
    text-align: center;
}

.w7591-text-primary {
    color: var(--w7591-primary);
}

.w7591-text-secondary {
    color: var(--w7591-secondary);
}

/* Container and Layout */
.w7591-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.w7591-main {
    min-height: 100vh;
    padding-top: 80px;
}

/* Header */
.w7591-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w7591-gray-dark);
    z-index: 1000;
    transition: var(--w7591-transition);
}

.w7591-header.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: var(--w7591-shadow);
}

.w7591-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.w7591-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w7591-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.w7591-logo:hover {
    color: var(--w7591-secondary);
}

.w7591-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.w7591-nav-link {
    color: var(--w7591-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--w7591-transition);
    position: relative;
}

.w7591-nav-link:hover {
    color: var(--w7591-primary);
    background: rgba(244, 164, 96, 0.1);
}

.w7591-nav-link.active {
    color: var(--w7591-primary);
    background: rgba(244, 164, 96, 0.2);
}

/* Header Buttons */
.w7591-header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.w7591-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w7591-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.w7591-btn-primary {
    background: var(--w7591-gradient);
    color: var(--w7591-dark);
    box-shadow: var(--w7591-shadow);
}

.w7591-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--w7591-shadow-hover);
}

.w7591-btn-secondary {
    background: transparent;
    color: var(--w7591-primary);
    border: 2px solid var(--w7591-primary);
}

.w7591-btn-secondary:hover {
    background: var(--w7591-primary);
    color: var(--w7591-dark);
    transform: translateY(-2px);
}

.w7591-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Mobile Menu Toggle */
.w7591-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.w7591-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--w7591-primary);
    border-radius: 2px;
    transition: var(--w7591-transition);
}

/* Hero Section */
.w7591-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--w7591-darker) 0%, var(--w7591-dark) 100%);
    overflow: hidden;
}

.w7591-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/7591cb0a_1.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.w7591-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.w7591-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--w7591-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.w7591-hero-subtitle {
    font-size: 1.3rem;
    color: var(--w7591-secondary);
    margin-bottom: 2rem;
}

.w7591-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel */
.w7591-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--w7591-shadow);
}

.w7591-carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.w7591-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w7591-carousel-slide.active {
    opacity: 1;
}

.w7591-carousel-content {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.w7591-carousel-title {
    font-size: 2.5rem;
    color: var(--w7591-primary);
    margin-bottom: 1rem;
}

.w7591-carousel-text {
    font-size: 1.2rem;
    color: var(--w7591-light);
    margin-bottom: 1.5rem;
}

.w7591-carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.w7591-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w7591-transition);
}

.w7591-carousel-indicator.active {
    background: var(--w7591-primary);
    transform: scale(1.2);
}

.w7591-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--w7591-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--w7591-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w7591-carousel-nav:hover {
    background: var(--w7591-primary);
    color: var(--w7591-dark);
}

.w7591-carousel-prev {
    left: 20px;
}

.w7591-carousel-next {
    right: 20px;
}

/* Games Section */
.w7591-games {
    padding: 4rem 0;
    background: var(--w7591-darker);
}

.w7591-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.w7591-section-title {
    font-size: 2.5rem;
    color: var(--w7591-primary);
    margin-bottom: 1rem;
}

.w7591-section-subtitle {
    font-size: 1.2rem;
    color: var(--w7591-gray-light);
}

/* Game Categories */
.w7591-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.w7591-category-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--w7591-gray-light);
    border: 2px solid var(--w7591-gray-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--w7591-transition);
    font-weight: 600;
}

.w7591-category-btn:hover,
.w7591-category-btn.active {
    background: var(--w7591-gradient);
    color: var(--w7591-dark);
    border-color: var(--w7591-primary);
    transform: translateY(-2px);
}

/* Games Grid */
.w7591-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.w7591-game-card {
    background: var(--w7591-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--w7591-transition);
    cursor: pointer;
    box-shadow: var(--w7591-shadow);
    position: relative;
}

.w7591-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--w7591-shadow-hover);
}

.w7591-game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--w7591-transition);
}

.w7591-game-card:hover .w7591-game-image {
    transform: scale(1.1);
}

.w7591-game-info {
    padding: 1rem;
}

.w7591-game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--w7591-light);
    margin-bottom: 0.5rem;
    text-align: center;
}

.w7591-game-category {
    font-size: 0.8rem;
    color: var(--w7591-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w7591-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 164, 96, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--w7591-transition);
}

.w7591-game-card:hover .w7591-game-overlay {
    opacity: 1;
}

.w7591-play-btn {
    background: var(--w7591-dark);
    color: var(--w7591-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w7591-transition);
}

.w7591-play-btn:hover {
    background: var(--w7591-light);
    transform: scale(1.05);
}

/* Search Bar */
.w7591-search {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.w7591-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--w7591-dark);
    border: 2px solid var(--w7591-gray-dark);
    border-radius: 25px;
    color: var(--w7591-light);
    font-size: 1rem;
    transition: var(--w7591-transition);
}

.w7591-search-input:focus {
    outline: none;
    border-color: var(--w7591-primary);
    box-shadow: 0 0 0 3px rgba(244, 164, 96, 0.2);
}

.w7591-search-input::placeholder {
    color: var(--w7591-gray);
}

.w7591-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--w7591-primary);
    color: var(--w7591-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--w7591-transition);
}

.w7591-search-btn:hover {
    background: var(--w7591-secondary);
    transform: translateY(-50%) scale(1.1);
}

/* Features Section */
.w7591-features {
    padding: 4rem 0;
    background: var(--w7591-dark);
}

.w7591-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.w7591-feature-card {
    background: var(--w7591-darker);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--w7591-transition);
    border: 1px solid var(--w7591-gray-dark);
}

.w7591-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--w7591-primary);
    box-shadow: var(--w7591-shadow-hover);
}

.w7591-feature-icon {
    font-size: 3rem;
    color: var(--w7591-primary);
    margin-bottom: 1rem;
}

.w7591-feature-title {
    font-size: 1.3rem;
    color: var(--w7591-light);
    margin-bottom: 1rem;
}

.w7591-feature-text {
    color: var(--w7591-gray-light);
    line-height: 1.6;
}

/* Mobile Bottom Navigation */
.w7591-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w7591-darker);
    border-top: 1px solid var(--w7591-gray-dark);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.w7591-mobile-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.w7591-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    border: none;
    background: transparent;
    color: var(--w7591-gray);
    cursor: pointer;
    transition: var(--w7591-transition);
    border-radius: 10px;
    text-decoration: none;
}

.w7591-mobile-nav-item:hover,
.w7591-mobile-nav-item.active {
    color: var(--w7591-primary);
    background: rgba(244, 164, 96, 0.1);
    transform: translateY(-2px);
}

.w7591-mobile-nav-icon {
    font-size: 1.5rem;
}

.w7591-mobile-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Footer */
.w7591-footer {
    background: var(--w7591-darker);
    border-top: 1px solid var(--w7591-gray-dark);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.w7591-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.w7591-footer-section h3 {
    color: var(--w7591-primary);
    margin-bottom: 1rem;
}

.w7591-footer-link {
    color: var(--w7591-gray-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--w7591-transition);
}

.w7591-footer-link:hover {
    color: var(--w7591-primary);
}

.w7591-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--w7591-gray-dark);
    color: var(--w7591-gray);
}

/* Mobile Menu */
.w7591-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--w7591-dark);
    z-index: 9999;
    transition: var(--w7591-transition);
    padding: 2rem;
    overflow-y: auto;
}

.w7591-mobile-menu.active {
    right: 0;
}

.w7591-mobile-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: var(--w7591-transition);
}

.w7591-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.w7591-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--w7591-primary);
    font-size: 2rem;
    cursor: pointer;
}

.w7591-mobile-menu-nav {
    margin-top: 2rem;
}

.w7591-mobile-menu-link {
    display: block;
    color: var(--w7591-light);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--w7591-gray-dark);
    transition: var(--w7591-transition);
}

.w7591-mobile-menu-link:hover {
    color: var(--w7591-primary);
}

/* Back to Top Button */
.w7591-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--w7591-gradient);
    color: var(--w7591-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--w7591-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--w7591-shadow);
}

.w7591-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.w7591-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--w7591-shadow-hover);
}

/* Loading State */
.w7591-loading {
    text-align: center;
    padding: 3rem;
    color: var(--w7591-gray);
    font-size: 1.2rem;
}

.w7591-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--w7591-gray);
    border-top: 2px solid var(--w7591-primary);
    border-radius: 50%;
    animation: w7591-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes w7591-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes w7591-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w7591-fade-in {
    animation: w7591-fadeIn 0.5s ease-out;
}

/* Tooltip */
.w7591-tooltip {
    position: absolute;
    background: var(--w7591-dark);
    color: var(--w7591-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.w7591-tooltip.show {
    opacity: 1;
}

/* Notification */
.w7591-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--w7591-success);
    color: var(--w7591-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--w7591-shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--w7591-transition);
}

.w7591-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .w7591-main {
        padding-bottom: 80px; /* Space for mobile nav */
    }

    .w7591-h1 {
        font-size: 2rem;
    }

    .w7591-h2 {
        font-size: 1.5rem;
    }

    .w7591-hero-title {
        font-size: 2.5rem;
    }

    .w7591-hero-subtitle {
        font-size: 1.1rem;
    }

    .w7591-nav {
        display: none;
    }

    .w7591-mobile-toggle {
        display: flex;
    }

    .w7591-header-buttons {
        display: none;
    }

    .w7591-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .w7591-categories {
        gap: 0.5rem;
    }

    .w7591-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .w7591-carousel {
        margin: 1rem 0;
    }

    .w7591-carousel-container {
        height: 250px;
    }

    .w7591-carousel-title {
        font-size: 1.8rem;
    }

    .w7591-carousel-text {
        font-size: 1rem;
    }

    .w7591-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .w7591-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .w7591-mobile-nav {
        display: block;
    }
}

@media (min-width: 769px) {
    .w7591-mobile-nav {
        display: none;
    }

    .w7591-mobile-menu {
        display: none;
    }

    .w7591-mobile-overlay {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .w7591-container {
        padding: 0 20px;
    }

    .w7591-hero {
        min-height: 500px;
    }

    .w7591-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Print Styles */
@media print {
    .w7591-header,
    .w7591-footer,
    .w7591-mobile-nav,
    .w7591-back-to-top,
    .w7591-carousel-nav,
    .w7591-carousel-controls {
        display: none !important;
    }

    .w7591-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}