/* ===========================================
   GIVEAWAY CLIENT AREA STYLES
   =========================================== */

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

/* Base Styles */
.giveaway-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
}

/* Navigation Tabs */
.giveaway-nav-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-tab:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.nav-tab.active {
    background: #eef2ff;
    color: #1f2937;
    border-color: #c7d2fe;
    box-shadow: none;
}

.nav-tab i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tab span {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .giveaway-nav-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-tab {
        margin: 0;
        padding: 12px 15px;
    }
    
    .nav-tab span {
        font-size: 0.9rem;
    }
}

/* Giveaway Header Card */
.giveaway-header-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.giveaway-header-card::before {
    content: none;
}

.giveaway-header-card .card-body {
    position: relative;
    z-index: 1;
    color: #111827;
}

.giveaway-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.giveaway-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.prize-highlight {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.prize-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* Voting Section */
.voting-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: hidden;
}

.vote-button {
    background: #2563eb;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: none;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.vote-button:hover {
    background: #1d4ed8;
}

.vote-button:active {
    background: #1e40af;
}

.vote-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* Statistics Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 20px;
    transition: none;
    overflow: hidden;
    position: relative;
}



.stat-card::before {
    content: none;
}

.stat-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.stat-card p {
    color: #718096;
    font-weight: 500;
    margin: 0;
}

/* Recent Votes Card */
.recent-votes-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.recent-votes-card .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
}

.recent-votes-card .card-header h5 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.recent-votes-card .card-header h5 i {
    color: #667eea;
    margin-right: 10px;
}

.vote-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.vote-item:last-child {
    border-bottom: none;
}

.vote-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.vote-item i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.vote-name {
    font-weight: 600;
    color: #2d3748;
    margin-right: 10px;
}

.vote-time {
    color: #718096;
    font-size: 0.9rem;
}

/* Progress Card */
.progress-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 24px;
}

.progress {
    height: 16px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
    box-shadow: none;
}

.progress-bar {
    background: #2563eb;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Progress card inner spacing & text harmony */
.progress-card .card-body {
    padding: 20px;
}
.progress-card h5,
.progress-card .card-title {
    margin-bottom: 12px;
    color: #111827;
    font-weight: 700;
}
.progress-card p,
.progress-card .text-muted,
.progress-card small {
    color: #6b7280 !important;
    margin-top: 10px;
}

/* Login Required Card */
.login-required-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 500px;
}

/* License Required Card */
.license-required-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 500px;
}

/* Winner Announcement Card */
.winner-announcement-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin: 20px 0;
}

@keyframes winnerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.winner-celebration {
    padding: 30px;
}

.winner-trophy {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 12px;
}

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

.winner-title {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 8px;
}

.winner-name {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.winner-prize {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.winner-date {
    color: #4a5568;
    font-size: 1rem;
}

/* Next Giveaway Card */
.next-giveaway-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin: 20px 0;
    color: #111827;
}

.next-giveaway-text {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.next-giveaway-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Coming Soon Card */
.coming-soon-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin: 20px 0;
    color: #111827;
}

@keyframes comingSoonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.coming-soon-text {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.coming-soon-date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.countdown-item {
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 10px;
    min-width: 72px;
    border: 1px solid #e5e7eb;
}

.countdown-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 15px 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

/* Winner History Card */
.winner-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    margin: 20px 0;
}

.winner-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Winner History header layout */
.winner-history-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}
.winner-history-card .card-header h5 {
    margin: 0;
    color: #111827;
    font-weight: 700;
}
.winner-history-card .card-header h5 i {
    color: #667eea;
    margin-right: 10px;
    font-size: 1.1rem;
}
.winner-history-card .card-header .btn {
    border-radius: 8px;
    padding: 6px 12px;
}
.winner-history-card .card-header .btn-outline-primary {
    border: 1px solid #2563eb;
    color: #2563eb;
}
.winner-history-card .card-header .btn-outline-primary:hover {
    background: #2563eb;
    color: #ffffff;
}

.winner-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.3s ease;
}

.winner-item:hover {
    background: #f7fafc;
    padding-left: 10px;
}

.winner-item:last-child {
    border-bottom: none;
}

.winner-item i {
    font-size: 1.2rem;
    margin-right: 15px;
}

.winner-item .winner-name {
    font-weight: 600;
    color: #2d3748;
    margin-right: 10px;
}

.winner-item .winner-prize {
    color: #4a5568;
    margin-right: 10px;
}

.winner-item .winner-date {
    color: #718096;
    font-size: 0.9rem;
}

.login-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.license-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.login-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 15px;
}

.license-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 15px;
}

.login-message {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.license-message {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.license-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-actions .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.login-actions .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.login-actions .btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.license-actions .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.license-actions .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.license-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

.license-actions .btn-outline-primary {
    border: 2px solid #f59e0b;
    color: #f59e0b;
    background: transparent;
}

.license-actions .btn-outline-primary:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* Alerts */
.alert {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

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

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

/* Card Animations */
.giveaway-header-card,
.voting-section,
.stat-card,
.recent-votes-card,
.progress-card {
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .giveaway-page {
        padding: 15px;
    }
    
    .giveaway-title {
        font-size: 2rem;
    }
    
    .giveaway-subtitle {
        font-size: 1rem;
    }
    
    .prize-text {
        font-size: 1.2rem;
    }
    
    .vote-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .login-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .login-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .giveaway-page {
        padding: 10px;
    }
    
    .giveaway-title {
        font-size: 1.8rem;
    }
    
    .vote-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.3rem;
    }
    
    .stat-icon {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: none;
}

.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white;
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white;
}

.bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white;
}

.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white;
}

.bg-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    color: white;
}
