/* Shenzhen Sports Sphere Styles */
/* Color scheme: Dark blue primary (#0f172a), blue (#1e40af), yellow accents (#fbbf24) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

nav {
    background-color: #0f172a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 1.5rem;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav.scrolled .logo img {
    height: 40px;
    width: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

/* Hamburger Menu Button - hidden by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fbbf24;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Page title - hidden by default */
.page-title {
    display: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fbbf24;
    text-align: center;
    flex: 1;
    margin: 0 1rem;
}

nav a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #1e40af;
}

nav a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Multi-line nav items for longer text */
nav a.nav-multiline {
    display: inline-block;
    text-align: center;
    line-height: 1.3;
    font-size: 0.85rem;
    max-width: 120px;
}

/* Compact Submit Button in Navbar */
nav a.nav-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-align: center;
    line-height: 1.3;
    min-width: 85px;
    display: inline-block;
}

nav a.nav-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-logo {
    position: absolute;
    top: 1rem;
    left: 2rem;
    z-index: 1;
}

.hero-logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.qr-official {
    margin-top: 2rem;
}

.qr-official img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

.wechat-groups {
    text-align: center;
    margin-bottom: 3rem;
}

.wechat-groups h2 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.wechat-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 0.5rem;
}

.wechat-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.qr-group {
    text-align: center;
}

.qr-group img {
    width: 150px;
    height: 215px;
    border: 2px solid #1e40af;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.social {
    text-align: center;
    margin-bottom: 3rem;
}

.social h2 {
    color: white;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #0f172a;
}

.social-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.inline-wechat {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

.containers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.container:hover {
    transform: translateY(-5px);
}

.container img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.container h3 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fbbf24;
    color: #0f172a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1e40af;
    color: white;
}

.btn.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn.disabled:hover {
    background-color: #ccc;
    color: #666;
}

.page-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-content h1 {
    color: #0f172a;
    margin-bottom: 1rem;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.teams-list {
    display: grid;
    gap: 1.5rem;
}

.team-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-item h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.team-item p {
    margin-bottom: 0.5rem;
}

.cup-info {
    margin-top: 2rem;
    text-align: center;
}

.cup-info img {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.calendar-container {
    text-align: center;
}

.calendar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.calendar th, .calendar td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.calendar th {
    background-color: #0f172a;
    color: #fbbf24;
}

.calendar td:hover {
    background-color: #f8fafc;
}

.events-list {
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    background-color: #0f172a;
    color: #fbbf24;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    nav .logo {
        margin-right: 0;
    }

    nav .logo img {
        height: 40px;
        width: 40px;
    }

    /* Show hamburger on mobile when scrolled */
    nav.scrolled .hamburger {
        display: flex;
    }

    /* Show page title on mobile when scrolled */
    nav.scrolled .page-title {
        display: block;
        font-size: 1rem;
    }

    /* Hide nav links on mobile when scrolled, show as dropdown */
    nav.scrolled ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        gap: 0.75rem;
        min-width: 200px;
        z-index: 1001;
    }

    nav.scrolled ul.show {
        display: flex;
    }

    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex: 1;
    }

    nav a {
        font-size: 0.75rem;
    }

    nav a.nav-multiline {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    nav a.nav-submit-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .groups {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .containers {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero-logo img {
        width: 80px;
        height: 80px;
    }
}
