/* 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);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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;
}

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: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .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;
    }
}
