/* Reset และ Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0f3460;
    font-weight: 600;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Section Titles */
.section-title {
    color: #ffd700;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 2px;
}

/* Winners Section */
.winners-section {
    margin-bottom: 4rem;
}

.prize-category {
    margin-bottom: 3rem;
}

.prize-category-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.prize-category-title i {
    font-size: 2rem;
}

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

.winner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

/* รางวัลชนะเลิศ */
.winner-card[data-prize*="ชนะเลิศ"]::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

/* รางวัลรองชนะเลิศ */
.winner-card[data-prize*="รองชนะเลิศ"]::before {
    background: linear-gradient(90deg, #c0c0c0, #e0e0e0);
}

/* รางวัลชมเชย */
.winner-card[data-prize*="ชมเชย"]::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.winner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.winner-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.winner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.winner-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
}

.winner-card:hover .winner-image img {
    transform: scale(1.05);
}

.winner-info {
    text-align: center;
}

.winner-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.winner-name {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.winner-prize {
    color: #ffffff;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0f3460;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

/* Submissions Section */
.submissions-section {
    margin-bottom: 4rem;
}

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

.submission-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.submission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.submission-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.submission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.submission-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.submission-card:hover .submission-image img {
    transform: scale(1.05);
}

.submission-info {
    text-align: center;
}

.submission-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.submission-name {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.submission-date {
    color: #cccccc;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* No Data Message */
.no-data {
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid #ffd700;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .winners-grid {
        grid-template-columns: 1fr;
    }
    
    .submissions-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .submissions-grid {
        grid-template-columns: 1fr;
    }
    
    .winner-card,
    .submission-card {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

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

.winner-card,
.submission-card {
    animation: fadeInUp 0.6s ease-out;
}

.winner-card:nth-child(1) { animation-delay: 0.1s; }
.winner-card:nth-child(2) { animation-delay: 0.2s; }
.winner-card:nth-child(3) { animation-delay: 0.3s; }
.winner-card:nth-child(4) { animation-delay: 0.4s; }
.winner-card:nth-child(5) { animation-delay: 0.5s; }
.winner-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f3460;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
} 