/* Mask Tasker Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffd700;
    --accent-color: #8b5cf6;
    --light-bg: #2a2a2a;
    --dark-bg: #0a0a0a;
    --card-bg: #1f1f1f;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #3a3a3a;
    --yellow-glow: #ffed4e;
    --purple-accent: #a78bfa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a3a 50%, #1a1a1a 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

header p {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

nav a:hover, nav a.active {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border-color: var(--yellow-glow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Home Page */
.hero {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    text-align: center;
}

.hero h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.month-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
    border-color: var(--secondary-color);
}

.month-card:hover::before {
    opacity: 1;
}

.month-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.month-card .month-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.month-card .month-task {
    font-weight: 500;
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Month Page */
.month-header {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.month-header h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.month-header .date {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.task-description {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 1rem;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Team Submissions */
.submissions {
    display: grid;
    gap: 2rem;
}

.submission {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.submission-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.score {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--dark-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.submission-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.media-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-grid img:hover {
    transform: scale(1.05);
}

.media-grid video {
    width: 100%;
    border-radius: 8px;
    max-height: 300px;
}

/* Results Page */
.results-table {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.results-table h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--light-bg) 100%);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

tbody tr:hover {
    background-color: var(--light-bg);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, transparent 100%);
    border-left: 3px solid #c0c0c0;
}

.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, transparent 100%);
    border-left: 3px solid #cd7f32;
}

.total-score {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--light-bg) 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .month-header h2 {
        font-size: 1.5rem;
    }
}
