/* Lottery Guess Generator Frontend Styles - Bootstrap-like Design */

/* Reset and Base Styles */
.lgg-frontend * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lgg-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 20px 0;
}

/* Container System */
.lgg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.lgg-container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Grid System */
.lgg-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.lgg-col {
    flex: 1;
    padding: 0 15px;
}

.lgg-col-12 { width: 100%; }
.lgg-col-11 { width: 91.66666667%; }
.lgg-col-10 { width: 83.33333333%; }
.lgg-col-9 { width: 75%; }
.lgg-col-8 { width: 66.66666667%; }
.lgg-col-7 { width: 58.33333333%; }
.lgg-col-6 { width: 50%; }
.lgg-col-5 { width: 41.66666667%; }
.lgg-col-4 { width: 33.33333333%; }
.lgg-col-3 { width: 25%; }
.lgg-col-2 { width: 16.66666667%; }
.lgg-col-1 { width: 8.33333333%; }

/* Header Section */
.lgg-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lgg-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lgg-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.lgg-header .lgg-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 20px;
    font-weight: 500;
}

/* Navigation Tabs */
.lgg-nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lgg-nav-tab {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.lgg-nav-tab:hover {
    background: #f8f9fa;
    color: #667eea;
}

.lgg-nav-tab.active {
    color: #667eea;
    background: #f8f9fa;
}

.lgg-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Results Grid */
.lgg-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Game Card */
.lgg-game-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.lgg-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.lgg-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Game Header */
.lgg-game-header {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.lgg-game-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.lgg-game-time {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 5px;
}

/* Numbers Display */
.lgg-numbers-container {
    padding: 30px 25px;
}

.lgg-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.lgg-number-box {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lgg-number-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.lgg-number-box:hover::before {
    left: 100%;
}

.lgg-number-box:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.lgg-number-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lgg-number-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Special Styling for Different Number Types */
.lgg-number-box.single {
    background: linear-gradient(135deg, #ff6b6b20, #ff6b6b10);
    border-color: #ff6b6b;
}

.lgg-number-box.single .lgg-number-value {
    color: #ff6b6b;
}

.lgg-number-box.jodi {
    background: linear-gradient(135deg, #4ecdc420, #4ecdc410);
    border-color: #4ecdc4;
}

.lgg-number-box.jodi .lgg-number-value {
    color: #4ecdc4;
}

.lgg-number-box.panna {
    background: linear-gradient(135deg, #45b74920, #45b74910);
    border-color: #45b749;
}

.lgg-number-box.panna .lgg-number-value {
    color: #45b749;
}

/* Result String Display */
.lgg-result-string {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 15px;
    margin-top: 20px;
    border: 2px dashed #667eea;
}

.lgg-result-string-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.lgg-result-string-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

/* Live Updates Indicator */
.lgg-live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    color: #155724;
}

.lgg-live-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Filters Section */
.lgg-filters {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.lgg-filters h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.lgg-filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.lgg-filter-group {
    flex: 1;
    min-width: 200px;
}

.lgg-filter-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 600;
}

.lgg-filter-select,
.lgg-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.lgg-filter-select:focus,
.lgg-filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lgg-filter-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.lgg-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Historical Results Table */
.lgg-history-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.lgg-history-table h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.lgg-table-responsive {
    overflow-x: auto;
}

.lgg-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.lgg-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.lgg-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.lgg-table tbody tr:hover {
    background: #f8f9fa;
}

.lgg-table .number-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: #667eea;
}

/* Loading States */
.lgg-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    flex-direction: column;
}

.lgg-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lgg-loading-text {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Empty State */
.lgg-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.lgg-empty-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 20px;
}

.lgg-empty-title {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.lgg-empty-text {
    color: #adb5bd;
    font-size: 1rem;
}

/* Alerts */
.lgg-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    font-weight: 500;
}

.lgg-alert-success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.lgg-alert-info {
    color: #0c5460;
    background: #d1ecf1;
    border-color: #bee5eb;
}

.lgg-alert-warning {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.lgg-alert-danger {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lgg-header h1 {
        font-size: 2rem;
    }
    
    .lgg-header p {
        font-size: 1rem;
    }
    
    .lgg-nav-tabs {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .lgg-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lgg-numbers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lgg-number-box {
        padding: 15px;
    }
    
    .lgg-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lgg-filter-group {
        min-width: auto;
    }
    
    .lgg-game-card {
        margin-bottom: 20px;
    }
    
    .lgg-filters {
        padding: 20px;
    }
    
    .lgg-history-table h3 {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .lgg-table th,
    .lgg-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .lgg-result-string-value {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    .lgg-container {
        padding: 0 10px;
    }
    
    .lgg-header {
        padding: 40px 0;
    }
    
    .lgg-header h1 {
        font-size: 1.8rem;
    }
    
    .lgg-game-header {
        padding: 20px;
    }
    
    .lgg-numbers-container {
        padding: 20px;
    }
    
    .lgg-number-value {
        font-size: 1.5rem;
    }
    
    .lgg-result-string-value {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* Print Styles */
@media print {
    .lgg-filters,
    .lgg-nav-tabs,
    .lgg-filter-btn {
        display: none;
    }
    
    .lgg-game-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .lgg-header {
        background: none;
        color: #000;
        box-shadow: none;
    }
    
    .lgg-number-box {
        border: 2px solid #000;
        background: none;
    }
    
    .lgg-number-value {
        color: #000;
    }
}

/* Accessibility */
.lgg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.lgg-nav-tab:focus,
.lgg-filter-select:focus,
.lgg-filter-input:focus,
.lgg-filter-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animation for results appearing */
.lgg-game-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for multiple cards */
.lgg-game-card:nth-child(1) { animation-delay: 0.1s; }
.lgg-game-card:nth-child(2) { animation-delay: 0.2s; }
.lgg-game-card:nth-child(3) { animation-delay: 0.3s; }
.lgg-game-card:nth-child(4) { animation-delay: 0.4s; }
.lgg-game-card:nth-child(5) { animation-delay: 0.5s; }
.lgg-game-card:nth-child(6) { animation-delay: 0.6s; }