/**
 * nn777 slot - Main CSS Styles
 * Mobile-first casino gaming website
 * Color palette: #C71585 | #FF8000 | #FFD700 | #1E1E1E | #CD5C5C
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #FFD700;
    background-color: #1E1E1E;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

h1 {
    font-size: 2.4rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    color: #FFD700;
}

a {
    color: #FF8000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-bottom: 2px solid #C71585;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(199, 21, 133, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 3.2rem;
    height: 3.2rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFD700;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    gap: 0.3rem;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 2rem;
    height: 0.2rem;
    background: #FFD700;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.auth-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #C71585 0%, #FF8000 100%);
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 21, 133, 0.4);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #1E1E1E;
    border: 2px solid #C71585;
    border-radius: 0.8rem;
    padding: 1.5rem;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(199, 21, 133, 0.3);
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: #FFD700;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.nav-menu a:hover {
    background: #C71585;
    color: white;
}

/* Main Content */
.main-content {
    margin-top: 8rem;
    padding: 0 1.5rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(199, 21, 133, 0.3);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(199, 21, 133, 0.7), rgba(255, 128, 0, 0.7));
}

.carousel-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.carousel-subtitle {
    font-size: 1.4rem;
    color: #FFD700;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.3rem;
    background: linear-gradient(90deg, #C71585, #FF8000);
    border-radius: 0.15rem;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: #2A2A2A;
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px;
}

.game-item:hover {
    background: #3A3A3A;
    border-color: #C71585;
    transform: translateY(-2px);
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.8rem;
}

.game-item .game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #C71585 0%, #FF8000 100%);
    color: white;
    border: none;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 21, 133, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #FF8000 0%, #FFD700 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid #C71585;
    color: #C71585;
}

.btn-outline:hover {
    background: #C71585;
    color: white;
}

/* Promo Links */
.promo-link {
    color: #FF8000;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: #FFD700;
}

/* Content Modules */
.content-module {
    background: #2A2A2A;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #3A3A3A;
}

.content-module h3 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.content-module p {
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #1A1A1A;
    padding: 3rem 1.5rem 10rem;
    border-top: 2px solid #C71585;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-section h4 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #CCCCCC;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FF8000;
}

.partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3A3A3A;
    color: #888888;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #1E1E1E;
    border-top: 2px solid #C71585;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.8rem;
    min-height: 44px;
    min-width: 44px;
}

.bottom-nav-item:hover {
    color: #FF8000;
}

.bottom-nav-item i {
    font-size: 2rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 375px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 320px) {
    html {
        font-size: 55%;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gold {
    color: #FFD700;
}

.text-orange {
    color: #FF8000;
}

.text-pink {
    color: #C71585;
}

.bg-dark {
    background-color: #2A2A2A;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #C71585, #FF8000) 1;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.p-2 {
    padding: 2rem;
}

.rounded {
    border-radius: 0.8rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #3A3A3A;
    border-radius: 50%;
    border-top-color: #FF8000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.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;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
} 