/* Art Arena - Liquid Glass Design System */

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

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 100px;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1rem 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
}

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

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8b7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8b7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.cta-button, .submit-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover, .submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.4);
}

/* Cards */
.submit-card, .about-card {
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Arena Page */
.arena-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tip-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
}

.tip-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.tip-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.battles-section {
    margin-top: 4rem;
}

.battles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.battle-card {
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.battle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.3);
}

.battle-preview {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.battle-info {
    padding: 1.5rem;
}

.battle-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.battle-prompt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.battle-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.battle-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vote-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.vote-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.success-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: rgba(34, 197, 94, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.success-message.show {
    transform: translateX(0);
}

/* Gallery Page */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

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

.gallery-item {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.item-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.item-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.item-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Leaderboard Page */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
}

.podium-item {
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-item.first {
    order: 2;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
}

.podium-item.second {
    order: 1;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.1));
}

.podium-item.third {
    order: 3;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.1));
}

.podium-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.podium-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.podium-rank {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.podium-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.leaderboard-table {
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
}

.table-header {
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    color: var(--accent-color);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.artist {
    font-weight: 500;
}

.points {
    font-weight: 600;
    color: var(--accent-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* About Page */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-list {
    color: var(--text-secondary);
    margin-left: 2rem;
}

.about-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.reason-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
}

.reason-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.reason-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.reason-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .arena-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        grid-template-columns: 60px 2fr 1fr 1fr 1fr;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    nav {
        padding: 0.8rem 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }

    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-item {
        order: initial !important;
        width: 100%;
        max-width: 300px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 50px 2fr 1fr 1fr;
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    .table-row span:nth-child(3) {
        display: none;
    }
    
    .gallery-grid, .battles-grid {
        grid-template-columns: 1fr;
    }
}
