/* 777pnl CSS Layout Styles */
/* All classes use v705- prefix for namespace isolation */

/* CSS Variables for Theme Colors */
:root {
    --v705-primary: #95A5A6;
    --v705-secondary: #E0F2F1;
    --v705-dark: #2F2F2F;
    --v705-gray: #808080;
    --v705-darker: #3A3A3A;
    --v705-white: #FFFFFF;
    --v705-black: #000000;
    --v705-success: #4CAF50;
    --v705-warning: #FF9800;
    --v705-error: #F44336;
    --v705-info: #2196F3;
    --v705-gradient: linear-gradient(135deg, #95A5A6 0%, #E0F2F1 100%);
    --v705-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --v705-shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --v705-border-radius: 8px;
    --v705-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;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--v705-dark);
    background-color: var(--v705-secondary);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
.v705-h1, .v705-h2, .v705-h3, .v705-h4, .v705-h5, .v705-h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--v705-dark);
}

.v705-h1 {
    font-size: 2.5rem;
}

.v705-h2 {
    font-size: 2rem;
}

.v705-h3 {
    font-size: 1.5rem;
}

.v705-h4 {
    font-size: 1.25rem;
}

.v705-p {
    margin-bottom: 1rem;
    color: var(--v705-gray);
}

.v705-a {
    color: var(--v705-primary);
    text-decoration: none;
    transition: var(--v705-transition);
}

.v705-a:hover {
    color: var(--v705-darker);
    text-decoration: underline;
}

/* Container and Layout */
.v705-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v705-main {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Mobile-first responsive */
@media (max-width: 768px) {
    .v705-main {
        padding-top: 60px;
        padding-bottom: 80px;
    }
}

/* Header Styles */
.v705-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v705-white);
    box-shadow: var(--v705-shadow);
    z-index: 1000;
    transition: var(--v705-transition);
}

.v705-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.v705-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.v705-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v705-dark);
    text-decoration: none;
}

.v705-logo img {
    height: 40px;
    margin-right: 0.5rem;
}

/* Navigation */
.v705-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.v705-nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.v705-nav-link {
    color: var(--v705-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--v705-transition);
    position: relative;
}

.v705-nav-link:hover {
    color: var(--v705-primary);
}

.v705-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--v705-primary);
    transition: var(--v705-transition);
}

.v705-nav-link:hover::after {
    width: 100%;
}

/* Header Buttons */
.v705-header-buttons {
    display: flex;
    gap: 1rem;
}

.v705-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--v705-border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v705-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.v705-btn-primary {
    background: var(--v705-gradient);
    color: var(--v705-white);
    box-shadow: var(--v705-shadow);
}

.v705-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--v705-shadow-hover);
    text-decoration: none;
}

.v705-btn-secondary {
    background: transparent;
    color: var(--v705-primary);
    border: 2px solid var(--v705-primary);
}

.v705-btn-secondary:hover {
    background: var(--v705-primary);
    color: var(--v705-white);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.v705-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.v705-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--v705-dark);
    transition: var(--v705-transition);
}

.v705-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v705-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.v705-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.v705-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v705-white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: var(--v705-transition);
    overflow-y: auto;
}

.v705-mobile-menu.active {
    right: 0;
}

.v705-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v705-transition);
}

.v705-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v705-mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v705-mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--v705-gray);
}

.v705-mobile-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.v705-mobile-menu-item {
    border-bottom: 1px solid #f5f5f5;
}

.v705-mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--v705-dark);
    text-decoration: none;
    transition: var(--v705-transition);
}

.v705-mobile-menu-link:hover {
    background: var(--v705-secondary);
    color: var(--v705-primary);
}

/* Carousel Styles */
.v705-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v705-border-radius);
    box-shadow: var(--v705-shadow);
}

.v705-carousel-container {
    position: relative;
    height: 400px;
}

.v705-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.v705-carousel-slide.active {
    opacity: 1;
}

.v705-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v705-carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--v705-white);
    z-index: 2;
}

.v705-carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.v705-carousel-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.v705-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.v705-carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--v705-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--v705-transition);
    backdrop-filter: blur(10px);
}

.v705-carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.v705-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.v705-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--v705-transition);
}

.v705-carousel-indicator.active {
    background: var(--v705-white);
    transform: scale(1.2);
}

/* Game Grid Styles */
.v705-games-section {
    padding: 4rem 0;
}

.v705-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.v705-section-title {
    font-size: 2.5rem;
    color: var(--v705-dark);
    margin-bottom: 1rem;
}

.v705-section-subtitle {
    font-size: 1.125rem;
    color: var(--v705-gray);
}

.v705-game-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.v705-category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--v705-primary);
    background: transparent;
    color: var(--v705-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--v705-transition);
    font-weight: 600;
}

.v705-category-btn:hover,
.v705-category-btn.active {
    background: var(--v705-primary);
    color: var(--v705-white);
}

.v705-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.v705-game-card {
    background: var(--v705-white);
    border-radius: var(--v705-border-radius);
    overflow: hidden;
    box-shadow: var(--v705-shadow);
    transition: var(--v705-transition);
    cursor: pointer;
    position: relative;
}

.v705-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--v705-shadow-hover);
}

.v705-game-card.animate-in {
    animation: slideInUp 0.6s ease-out;
}

.v705-game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--v705-transition);
}

.v705-game-card:hover .v705-game-image {
    transform: scale(1.05);
}

.v705-game-info {
    padding: 1rem;
}

.v705-game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--v705-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v705-game-category {
    font-size: 0.875rem;
    color: var(--v705-gray);
    text-transform: capitalize;
}

.v705-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--v705-transition);
}

.v705-game-card:hover .v705-game-overlay {
    opacity: 1;
}

.v705-play-btn {
    background: var(--v705-gradient);
    color: var(--v705-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v705-transition);
    transform: scale(0.9);
}

.v705-game-card:hover .v705-play-btn {
    transform: scale(1);
}

/* Bottom Navigation */
.v705-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v705-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.v705-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

.v705-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--v705-transition);
    color: var(--v705-gray);
    text-decoration: none;
    position: relative;
}

.v705-bottom-nav-item:hover,
.v705-bottom-nav-item.active {
    color: var(--v705-primary);
    transform: translateY(-2px);
}

.v705-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.v705-bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.v705-bottom-nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--v705-error);
    color: var(--v705-white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Partners Section */
.v705-partners {
    background: var(--v705-white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.v705-partners-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--v705-gray);
    margin-bottom: 2rem;
    font-weight: 600;
}

.v705-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.v705-partner-item {
    opacity: 0.6;
    transition: var(--v705-transition);
    filter: grayscale(100%);
}

.v705-partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.v705-partner-item img {
    height: 40px;
    width: auto;
}

/* Footer */
.v705-footer {
    background: var(--v705-darker);
    color: var(--v705-white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.v705-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.v705-footer-section h4 {
    color: var(--v705-white);
    margin-bottom: 1rem;
}

.v705-footer-section ul {
    list-style: none;
}

.v705-footer-section li {
    margin-bottom: 0.5rem;
}

.v705-footer-section a {
    color: var(--v705-gray);
    text-decoration: none;
    transition: var(--v705-transition);
}

.v705-footer-section a:hover {
    color: var(--v705-white);
}

.v705-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--v705-gray);
    color: var(--v705-gray);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading States */
.v705-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--v705-secondary);
    border-top: 2px solid var(--v705-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.v705-copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--v705-dark);
    color: var(--v705-white);
    padding: 1rem 2rem;
    border-radius: var(--v705-border-radius);
    box-shadow: var(--v705-shadow);
    opacity: 0;
    transition: var(--v705-transition);
    z-index: 9999;
}

.v705-copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v705-mobile-menu-toggle {
        display: flex;
    }

    .v705-nav {
        display: none;
    }

    .v705-bottom-nav {
        display: block;
    }

    .v705-main {
        padding-bottom: 80px;
    }

    .v705-carousel {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .v705-carousel-container {
        height: 250px;
    }

    .v705-carousel-title {
        font-size: 2rem;
    }

    .v705-carousel-subtitle {
        font-size: 1rem;
    }

    .v705-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .v705-section-title {
        font-size: 2rem;
    }

    .v705-h1 {
        font-size: 2rem;
    }

    .v705-h2 {
        font-size: 1.5rem;
    }

    .v705-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .v705-header-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .v705-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .v705-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v705-carousel-container {
        height: 200px;
    }

    .v705-carousel-title {
        font-size: 1.5rem;
    }

    .v705-partners-grid {
        gap: 1rem;
    }

    .v705-partner-item img {
        height: 30px;
    }
}

/* Utility Classes */
.v705-text-center {
    text-align: center;
}

.v705-text-left {
    text-align: left;
}

.v705-text-right {
    text-align: right;
}

.v705-mt-1 { margin-top: 0.5rem; }
.v705-mt-2 { margin-top: 1rem; }
.v705-mt-3 { margin-top: 1.5rem; }
.v705-mt-4 { margin-top: 2rem; }
.v705-mt-5 { margin-top: 2.5rem; }

.v705-mb-1 { margin-bottom: 0.5rem; }
.v705-mb-2 { margin-bottom: 1rem; }
.v705-mb-3 { margin-bottom: 1.5rem; }
.v705-mb-4 { margin-bottom: 2rem; }
.v705-mb-5 { margin-bottom: 2.5rem; }

.v705-hidden {
    display: none !important;
}

.v705-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Form Styles */
.v705-form-group {
    margin-bottom: 1.5rem;
}

.v705-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--v705-dark);
}

.v705-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--v705-border-radius);
    font-size: 1rem;
    transition: var(--v705-transition);
}

.v705-form-control:focus {
    outline: none;
    border-color: var(--v705-primary);
    box-shadow: 0 0 0 3px rgba(149, 165, 166, 0.1);
}

.v705-form-control.error {
    border-color: var(--v705-error);
}

/* Card Styles */
.v705-card {
    background: var(--v705-white);
    border-radius: var(--v705-border-radius);
    box-shadow: var(--v705-shadow);
    overflow: hidden;
    transition: var(--v705-transition);
}

.v705-card:hover {
    box-shadow: var(--v705-shadow-hover);
}

.v705-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.v705-card-body {
    padding: 1.5rem;
}

.v705-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}