/* 
* Main Stylesheet for Modern Lottery Results Website
* This file contains styles for the frontend pages
*/

/* Global Styles */
:root {
    --primary-color: #FF3366;  /* Bright Pink */
    --secondary-color: #00E5FF;  /* Bright Cyan */
    --accent-color: #FFD700;  /* Bright Gold */
    --light-color: #ffffff;
    --dark-color: #1A1A1A;
    --grey-color: #6c757d;
    --success-color: #00FF9D;  /* Bright Green */
    --warning-color: #FFB800;  /* Bright Orange */
    --danger-color: #FF1744;  /* Bright Red */
    --info-color: #00B0FF;  /* Bright Blue */
    --light-bg: #F0F8FF;  /* Light Blue Background */
    --dark-text: #1A1A1A;
    
    /* New Vibrant Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, #FF3366 0%, #FF6B6B 100%);  /* Pink to Coral */
    --gradient-secondary: linear-gradient(135deg, #00E5FF 0%, #00B0FF 100%);  /* Cyan to Blue */
    --gradient-success: linear-gradient(135deg, #00FF9D 0%, #00E5FF 100%);  /* Green to Cyan */
    --gradient-warning: linear-gradient(135deg, #FFB800 0%, #FF3366 100%);  /* Orange to Pink */
    --gradient-accent: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);  /* Gold to Orange */
    --gradient-danger: linear-gradient(135deg, #FF1744 0%, #FF3366 100%);  /* Red to Pink */
    --gradient-info: linear-gradient(135deg, #00B0FF 0%, #00E5FF 100%);  /* Blue to Cyan */
}

body {
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Header Styles */
.site-header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.site-header h1 {
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 767.98px) {
  .lead {
    font-size:0.95rem !important;
  }
}

.my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.header-info h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.current-date {
    color: var(--grey-color);
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .header .row {
        text-align: center;
    }
    .header .logo,
    .header .header-info {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .header-info h2,
    .header-info .current-date {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .header .logo img {
        max-height: 40px;
        width: auto;
    }
    .main-logo {
        width: 100px;   /* adjust as needed */
        height: auto;   /* optional, keeps aspect ratio */
    }
}

.vw-btn{
    color: white;
    border-color: white;
}

/* Vibrant Navbar Styles */
.navbar, .navbar.navbar-dark {
    background: linear-gradient(90deg, #FF3366 0%, #00E5FF 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
    margin: 0 4px;
    padding: 0.8rem 1.2rem;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background: linear-gradient(90deg, #FFD700 0%, #FF3366 100%);
    color: #1A1A1A !important;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.10);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin: 4px 0;
        padding: 0.8rem 1rem;
        border-radius: 6px;
    }
}

/* Main Content */
.main-content {
    
    min-height: calc(100vh - 300px);
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.time-slot {
    flex: 1;
    min-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.time-slot:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
}

.time-slot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.time-slot-body {
    padding: 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-secondary);
    color: white;
    padding: 50px 0;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 600px;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem;
}

.card-body {
    padding: 20px;
}

/* Date Picker */
.date-picker-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Results Listing */
.results-list {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.result-time {
    font-weight: 600;
    color: var(--dark-color);
}

/* Download/View Result Button Styles */
.download-btn,
.btn-view-result,
a[href*="download.php"] {
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-btn:hover,
.btn-view-result:hover,
a[href*="download.php"]:hover {
    background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.download-btn i,
.btn-view-result i,
a[href*="download.php"] i {
    margin-right: 5px;
    color: #FFD700;  /* Gold icon color */
}

/* Mobile Responsive Styles for Download Buttons */
@media (max-width: 576px) {
    .download-btn,
    .btn-view-result,
    a[href*="download.php"] {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 8px;
        font-size: 1rem;
        white-space: normal;
    }
}

/* Update existing download button styles */
.btn-success.download-btn,
.btn-success.btn-view-result,
.btn-success[href*="download.php"] {
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
}

.btn-success.download-btn:hover,
.btn-success.btn-view-result:hover,
.btn-success[href*="download.php"]:hover {
    background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
}

/* Video Embed */
.video-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    border-radius: 10px;
}

/* Stockistship Form */
.stockist-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Popup Styles */
.popup-image {
    max-width: 100%;
    height: auto;
}

/* Schemes Slideshow */
.schemes-slideshow {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    background: #222;
}

.schemes-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
}

/* Recommended scheme image size: 900x506px (16:9 ratio, JPG/PNG) */

@media (max-width: 991.98px) {
    .schemes-slideshow {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}
@media (max-width: 576px) {
    .schemes-slideshow {
        margin: 16px 0;
        border-radius: 8px;
    }
}

/* Footer */
.site-footer {
    background: var(--gradient-secondary);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer ul.list-inline li {
    display: inline-block;
    margin-right: 10px;
}

.footer ul.list-inline li:last-child {
    margin-right: 0;
}

/* Social icons only */
.footer .list-inline.social-icons li a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-toggler {
    border-color: white !important;
}


.footer .list-inline.social-icons li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Remove icon box styles from quick links */
.footer .list-inline-item a {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 6px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    height: auto;
    line-height: normal;
    text-align: inherit;
}

/* Footer Quick Links Responsive Layout */
.footer .list-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-left: 0;
}
.footer .list-inline-item {
    display: inline-block;
    margin: 0;
}

@media (max-width: 576px) {
    .footer .list-inline {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footer .list-inline-item {
        display: block;
        width: 100%;
        text-align: center;
    }
    .footer .list-inline-item a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-info h2 {
        font-size: 1.2rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .time-slots {
        flex-direction: column;
    }
    
    .time-slot {
        min-width: 100%;
    }
    
    .stockist-form {
        padding: 20px;
    }
    
    .footer h5 {
        margin-top: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.status-success {
    background-color: rgba(0, 255, 157, 0.2);
    color: #00FF9D;
    border-left: 4px solid #00FF9D;
}

.status-error {
    background-color: rgba(255, 23, 68, 0.2);
    color: #FF1744;
    border-left: 4px solid #FF1744;
}

.status-warning {
    background-color: rgba(255, 184, 0, 0.2);
    color: #FFB800;
    border-left: 4px solid #FFB800;
}

.status-info {
    background-color: rgba(0, 176, 255, 0.2);
    color: #00B0FF;
    border-left: 4px solid #00B0FF;
}

@media (max-width: 991.98px) {
    .video-container {
        max-width: 100%;
    }
}

/* Live Draw Video Smaller Size on Desktop */
@media (max-width: 767.98px) {
    .video-container {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

/* Table Styles */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.table thead th {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 1rem;
}

.table tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Result Card Specific Styles */
.result-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.result-card .date {
    color: var(--primary-color);
    font-weight: 600;
}

.result-card .slot {
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Animation for numbers */
.number-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
