/* Casino Reviews Frontend Styles */

/* Main container */
.casino-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Location detector */
.casino-location-detector {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.location-icon {
    font-size: 1.5em;
    animation: casino-pulse 2s infinite;
}

@keyframes casino-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.location-text {
    font-weight: 500;
    color: #495057;
}

.detect-location-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,124,186,0.3);
}

.detect-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.4);
}

.location-result {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    display: none;
}

.user-location {
    font-weight: 600;
    color: #28a745;
}

/* Filter controls */
.casino-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.casino-filters > div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    margin: 0;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.layout-switcher {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.layout-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.layout-btn:hover {
    background: rgba(0,124,186,0.1);
    color: #007cba;
}

.layout-btn.active {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 4px rgba(0,124,186,0.3);
}

/* Cards layout */
.casino-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.casino-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #28a745, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.casino-card:hover::before {
    opacity: 1;
}

.casino-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    font-size: 1.3em;
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rating-number {
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.casino-info .bonus {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.casino-info .bonus strong {
    color: #155724;
    font-size: 1.1em;
}

.casino-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.casino-details > div {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
}

.casino-regions {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.casino-regions small {
    display: block;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

.casino-actions a {
    display: inline-block;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
    text-align: center;
    width: 100%;
}

.casino-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,124,186,0.4);
    text-decoration: none;
    color: white;
}

/* Grid layout */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.casino-grid-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.casino-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.casino-grid-item h4 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #212529;
}

.casino-grid-item .rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.casino-grid-item .bonus {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.4;
}

.casino-grid-item .games {
    font-size: 0.85em;
    color: #adb5bd;
    margin-bottom: 15px;
    font-weight: 500;
}

.casino-grid-item a {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.casino-grid-item a:hover {
    background: #005a87;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* List layout */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.casino-list-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.casino-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.casino-list-item .casino-info {
    flex: 1;
}

.casino-list-item h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #212529;
}

.casino-list-item .rating {
    color: #ffc107;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.casino-list-item .bonus {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.4;
}

.casino-stats {
    text-align: center;
    min-width: 100px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.casino-stats > div:first-child {
    font-weight: 700;
    font-size: 1.5em;
    color: #007cba;
    margin-bottom: 4px;
}

.casino-stats > div:last-child {
    font-size: 0.8em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.casino-list-item .casino-regions {
    min-width: 140px;
    font-size: 0.9em;
}

.casino-list-item .casino-action a {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.casino-list-item .casino-action a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.4);
    text-decoration: none;
    color: white;
}

/* Table layout */
.casino-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-width: 800px;
}

.casino-table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.casino-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
}

.casino-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    color: #495057;
}

.casino-table tr:last-child td {
    border-bottom: none;
}

.casino-table tbody tr {
    transition: all 0.3s ease;
}

.casino-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.casino-table .stars {
    color: #ffc107;
    font-size: 1.1em;
}

.casino-table a {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.casino-table a:hover {
    background: #005a87;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Region flags and formatting */
.casino-regions span {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    padding: 2px 6px;
    background: rgba(0,124,186,0.1);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    color: #007cba;
}

/* Loading states */
.casino-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.casino-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: casino-spin 1s linear infinite;
}

@keyframes casino-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.casino-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.casino-empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

.casino-empty-state p {
    margin-bottom: 0;
    font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .casino-reviews-container {
        padding: 15px;
    }
    
    .casino-filters > div {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .layout-switcher {
        justify-content: center;
    }
    
    .casino-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .casino-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .casino-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }
    
    .casino-stats,
    .casino-list-item .casino-regions {
        min-width: auto;
    }
    
    .casino-table-wrapper {
        border-radius: 8px;
    }
    
    .casino-table th,
    .casino-table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .casino-card {
        padding: 20px;
    }
    
    .casino-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .location-status {
        flex-direction: column;
        gap: 10px;
    }
    
    .detect-location-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Animation for new content */
.casino-fade-in {
    animation: casino-fadeIn 0.5s ease-in;
}

@keyframes casino-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accessibility improvements */
.casino-card:focus-within,
.casino-grid-item:focus-within,
.casino-list-item:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.casino-actions a:focus,
.casino-grid-item a:focus,
.casino-list-item a:focus,
.casino-table a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .casino-filters,
    .casino-actions,
    .detect-location-btn {
        display: none;
    }
    
    .casino-card,
    .casino-list-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}