@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    color: #2c3e50;
    line-height: 1.8;
    min-height: 100vh;
}

/* ============ Navbar ============ */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

/* ============ Hero Section ============ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ============ Event Card ============ */
.event-card {
    background: white;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.event-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 5px solid #667eea;
}

.event-card-body {
    padding: 40px;
}

.event-card h2, .event-card h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.event-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

.event-meta-item i {
    color: #667eea;
    font-size: 1.2rem;
}

/* ============ Buttons ============ */
.btn {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ============ Stats Section ============ */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 25px;
    margin: 40px 0;
    color: white;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.stats-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* ============ Submission Cards ============ */
.submission-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.submission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.submission-preview {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.submission-preview img,
.submission-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.submission-card:hover .submission-preview img,
.submission-card:hover .submission-preview video {
    transform: scale(1.1);
}

.rank-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.submission-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.submission-body h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.submission-body p {
    color: #6c757d;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.submission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

/* ============ Badges ============ */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-gold {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
}

.badge-silver {
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
    color: #4a5568;
}

.badge-bronze {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

/* ============ Forms ============ */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* ============ Alerts ============ */
.alert {
    border-radius: 15px;
    border: none;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.alert-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
}

/* ============ Prize Items ============ */
.prize-item {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(246, 211, 101, 0.3);
}

/* ============ Cards ============ */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 700;
}

.card-header h5, .card-header h4 {
    color: white;
    margin: 0;
}

/* ============ Footer ============ */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

/* ============ Submission Detail ============ */
.submission-detail-card {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.description-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-right: 5px solid #667eea;
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-box i {
    display: block;
    margin-bottom: 15px;
    font-size: 2rem;
}

.info-box h6 {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .event-card-body {
        padding: 25px;
    }
    
    .event-banner {
        height: 220px;
    }
    
    .submission-preview {
        height: 220px;
    }
    
    .submission-detail-card {
        padding: 25px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 15px;
    }
}

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

.event-card, .submission-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============ Tables ============ */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table td, .table th {
    padding: 15px;
    vertical-align: middle;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* ============ Section Titles ============ */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
}

.section-title i {
    color: #667eea;
}

/* ============ Winner Row ============ */
.winner-row {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-right: 5px solid #f6d365;
    transition: all 0.3s;
}

.winner-row:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(246, 211, 101, 0.2);
}

/* ============ Decorative Section ============ */
.decorative-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    margin: 20px 0;
}

.decorative-section img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}