/* Universal CSS styles for superph11.org - Mobile-first design */

/* Root font size and color variables */
:root {
    font-size: 62.5%; /* 1rem = 10px for easy calculation */
    --primary-color: #333333;     /* Dark background */
    --accent-color: #00FF7F;      /* Bright green for highlights */
    --secondary-color: #696969;   /* Gray for secondary elements */
    --text-light: #ffffff;        /* White text on dark background */
    --text-dark: #333333;         /* Dark text when needed */
    --border-radius: 0.8rem;
    --transition: all 0.3s ease;
    --box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-light);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header and navigation styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border-bottom: 0.2rem solid var(--accent-color);
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 6rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.8rem;
}

.logo img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
    border-radius: var(--border-radius);
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
}

.nav-button {
    padding: 0.8rem 1.2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #00cc66;
    transform: translateY(-0.2rem);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.8rem;
    background: none;
    border: none;
    min-height: 4.4rem;
    min-width: 4.4rem;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 2.4rem;
    height: 0.3rem;
    background-color: var(--accent-color);
    margin: 0.2rem 0;
    transition: var(--transition);
    border-radius: 0.1rem;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Navigation menu */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border-bottom: 0.2rem solid var(--accent-color);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.nav-menu.active {
    max-height: 50rem;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    padding: 0.8rem 1.5rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
    padding-left: 1rem;
}

/* Main content padding to account for fixed header */
main {
    margin-top: 6rem;
    min-height: calc(100vh - 6rem);
}

/* Carousel styles */
.carousel {
    position: relative;
    height: 20rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    cursor: pointer;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Game grid styles */
.game-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 4.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-0.2rem);
}

.game-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.game-item .game-name {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
}

/* Content sections */
.content-section {
    background-color: var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-section h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Promotional links */
.promo-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: var(--transition);
    min-height: 4.4rem;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1.4rem;
}

.promo-link:hover {
    background-color: #00cc66;
    transform: translateY(-0.2rem);
}

/* Footer styles */
.footer {
    background-color: var(--primary-color);
    border-top: 0.2rem solid var(--accent-color);
    padding: 3rem 0 8rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-link:hover {
    color: var(--accent-color);
    background-color: var(--secondary-color);
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: var(--border-radius);
    background-color: var(--text-light);
    padding: 0.4rem;
}

.copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 2rem;
}

/* Bottom navigation for mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border-top: 0.2rem solid var(--accent-color);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
    font-size: 1rem;
}

.bottom-nav-item:hover {
    color: var(--accent-color);
    transform: translateY(-0.2rem);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Responsive adjustments for larger screens */
@media (min-width: 48rem) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media (min-width: 64rem) {
    .container {
        max-width: 64rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
} 