/* Custom CSS for 3D Print Competition Website */

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #64748b;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --light-color: #f7fafc;
    --dark-color: #2d3748;
    --purple-color: #9f7aea;
    --pink-color: #ed64a6;
    --indigo-color: #667eea;
    --blue-color: #4299e1;
    --cyan-color: #38b2ac;
    --teal-color: #38b2ac;
    --green-color: #48bb78;
    --yellow-color: #ecc94b;
    --orange-color: #ed8936;
    --red-color: #f56565;
}

/* Modern Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Modern Card Styles */
.modern-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
        transform: scale(1.05);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Modern Button Styles */
.btn-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Modern Form Styles */
.form-control-modern {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Modern Competition Cards */
.competition-card-modern {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.competition-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.competition-card-modern .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.competition-card-modern:hover .card-img-top {
    transform: scale(1.05);
}

/* Modern Winner Cards */
.winner-card-modern {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

.winner-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Particle Background Effect */
.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Modern Progress Bars */
.progress-modern {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Modern Countdown Display */
.countdown-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.countdown-modern .countdown-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Modern Navigation */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-modern .navbar-brand {
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Enhancement */
.hero-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>');
    animation: hero-rotate 20s linear infinite;
}

@keyframes hero-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Footer */
.footer-modern {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Success Animation */
@keyframes success-burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-burst {
    animation: success-burst 0.6s ease-out;
}

/* Modern Alert Styles */
.alert-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.glow-success {
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
}

.glow-warning {
    box-shadow: 0 0 20px rgba(237, 137, 54, 0.4);
}

.glow-danger {
    box-shadow: 0 0 20px rgba(245, 101, 101, 0.4);
}

/* Modern Input Focus */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Modern Badge Styles */
.badge-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .modern-card {
        margin: 0.5rem;
    }

    .btn-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-modern {
        padding: 3rem 0;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: rgba(45, 55, 72, 0.9);
        color: white;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modern-card {
        border: 2px solid #000;
    }

    .btn-modern {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .modern-card,
    .competition-card-modern,
    .winner-card-modern,
    .btn-modern {
        transition: none;
        animation: none;
    }
}

.competition-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.winner-card {
    transition: transform 0.2s ease;
}

.winner-card:hover {
    transform: scale(1.02);
}

.stat-item {
    padding: 20px 0;
}

/* Countdown Styles */
.countdown {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc2626;
}

.countdown-container {
    margin: 1rem 0;
}

.countdown-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.countdown-large .countdown-display {
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.countdown-small .countdown-display {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.countdown-live .countdown-display {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: live-pulse 1s ease-in-out infinite alternate;
}

.countdown-urgent .countdown-display {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    animation: urgent-pulse 2s ease-in-out infinite;
}

.countdown-time {
    margin-bottom: 0.5rem;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    letter-spacing: 2px;
}

.countdown-large .countdown-value {
    font-size: 4rem;
}

.countdown-small .countdown-value {
    font-size: 1.5rem;
}

.countdown-label {
    margin-bottom: 0.5rem;
}

.countdown-competition {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.countdown-meta {
    opacity: 0.9;
    font-size: 0.9rem;
}

.countdown-live-text {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: live-glow 1s ease-in-out infinite alternate;
}

@keyframes live-pulse {
    0% { box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 10px 40px rgba(255, 107, 107, 0.6); }
}

@keyframes urgent-pulse {
    0% { box-shadow: 0 10px 30px rgba(255, 167, 38, 0.3); }
    100% { box-shadow: 0 10px 40px rgba(255, 167, 38, 0.6); }
}

@keyframes live-glow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
    100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* Next Draw Widget */
.next-draw-widget {
    animation: draw-widget-appear 0.8s ease-out;
}

@keyframes draw-widget-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.next-draw-urgent {
    animation: urgent-glow 3s ease-in-out infinite;
}

@keyframes urgent-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 167, 38, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 167, 38, 0.6); }
}

/* Winner Card Enhancements */
.winner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.winner-card.border-success {
    border-left: 4px solid #28a745 !important;
}

.winner-card.border-warning {
    border-left: 4px solid #ffc107 !important;
}

.winner-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: bold;
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.winner-avatar::after {
    content: '🏆';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 1.5rem;
    animation: winner-trophy-bounce 2s ease-in-out infinite;
}

@keyframes winner-trophy-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.winner-prize {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.instant-win-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.main-prize-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.empty-winners-icon {
    opacity: 0.5;
}

/* Winner Statistics Cards */
.winner-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.winner-stats-card .stat-number {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    margin-bottom: 0.5rem;
}

.winner-stats-card .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Winner Filter Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.nav-tabs .nav-link:hover:not(.active) {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Winner Card Animations */
@keyframes winner-card-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.winner-card {
    animation: winner-card-appear 0.6s ease-out;
}

.winner-card:nth-child(2) {
    animation-delay: 0.1s;
}

.winner-card:nth-child(3) {
    animation-delay: 0.2s;
}

.winner-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Enhanced Winner Display */
.winner-location {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-block;
    margin-top: 0.5rem;
}

.winner-competition {
    background: #e7f3ff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 0.5rem;
}

/* Winner Search and Filter */
.winner-filters {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group .form-select,
.filter-group .form-control {
    flex: 1;
    min-width: 200px;
}

.filter-group .btn {
    height: 38px;
    white-space: nowrap;
}

/* Winner Charts */
.winner-chart-container {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Social Media Buttons */
.social-share-buttons {
    gap: 0.5rem;
}

.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: white;
}

.btn-twitter {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background-color: #1991db;
    border-color: #1991db;
    color: white;
}

.btn-linkedin {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background-color: #006ba1;
    border-color: #006ba1;
    color: white;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #22c95c;
    border-color: #22c95c;
    color: white;
}

.btn-email {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-email:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #a9156b 100%);
    color: white;
}

.social-proof {
    border-left: 4px solid #28a745;
    animation: social-proof-appear 0.8s ease-out;
}

@keyframes social-proof-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facebook-like, .facebook-comments {
    margin: 1rem 0;
}

.instagram-follow {
    margin: 1rem 0;
}

/* Competition Share Widget */
.competition-share-widget, .winner-share-widget {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.competition-share-widget h6, .winner-share-widget h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Social Login Styles */
.social-login {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.social-login .btn {
    transition: transform 0.2s ease;
}

.social-login .btn:hover {
    transform: translateY(-2px);
}

/* Enhanced Footer Social Links */
footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Social Media Meta Information */
.social-meta-info {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.social-meta-info .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.social-meta-info .meta-item:last-child {
    margin-bottom: 0;
}

.social-meta-info .meta-icon {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .winner-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .winner-prize {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-group .form-select,
    .filter-group .form-control {
        min-width: 100%;
    }

    .social-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-share-buttons .btn {
        margin: 0.25rem;
    }
}

.competition-meta .fs-5 {
    font-weight: 600;
}

.progress {
    height: 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Age verification styles */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

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

.competition-card {
    animation: fadeInUp 0.6s ease-out;
}

.competition-card:nth-child(2) {
    animation-delay: 0.1s;
}

.competition-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Instant win highlight */
.instant-win {
    position: relative;
    overflow: hidden;
}

.instant-win::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Winner celebration animation */
.winner-card {
    position: relative;
}

.winner-card::after {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Competition status badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ending-soon {
    background-color: #fef3c7;
    color: #92400e;
}

.status-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-instant-win {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Ticket counter animation */
.ticket-counter {
    transition: all 0.3s ease;
}

.ticket-counter.updated {
    transform: scale(1.1);
    color: var(--success-color);
}

/* Modal enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

/* Form enhancements */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Alert enhancements */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
}

/* Footer enhancements */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}