/* ========================================
   GREEK CASINO - ULTRA MOBILE OPTIMIZED
   Mobile-First Performance CSS
   ======================================== */

/* === CSS Variables === */
:root {
    --primary-blue: #0a2351;
    --secondary-blue: #1e4d92;
    --accent-gold: #d4af37;
    --text-light: #f1f1f1;
    --text-white: #ffffff;
    --bg-dark: #0d1117;
    --bg-section: #1a1f2e;
    --border-color: #2d3748;
    --success-green: #10b981;
    --warning-red: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Reset === */
*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 40px 0;
}

/* === Header MOBILE-OPTIMIZED === */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    will-change: transform;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

/* Mobile nav hidden by default */
.main-nav {
    display: none;
    width: 100%;
    order: 3;
    gap: 12px;
    padding-top: 10px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 13px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.header-buttons {
    display: flex;
    gap: 8px;
}

/* === Buttons === */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:active {
    background: #f4c542;
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-casino {
    background: linear-gradient(135deg, var(--accent-gold), #f4c542);
    color: var(--primary-blue);
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-casino:hover,
.btn-casino:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

/* === Page Header COMPACT === */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 40px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 26px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* === ULTRA COMPACT CASINO CARD === */
.casino-card {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
    transition: var(--transition);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.casino-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.casino-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--accent-gold), #f4c542);
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.casino-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.casino-logo-placeholder {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.casino-logo-text {
    font-size: 8px;
    font-weight: 900;
    color: var(--accent-gold);
    text-align: center;
    line-height: 1.1;
    padding: 4px;
}

.casino-info {
    flex: 1;
    min-width: 0;
}

.casino-name {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.2;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.stars {
    font-size: 11px;
    color: var(--accent-gold);
}

.rating-score {
    font-size: 13px;
    font-weight: 700;
    color: var(--success-green);
}

/* === Bonus Section COMPACT === */
.casino-bonus {
    background: linear-gradient(135deg, rgba(10, 35, 81, 0.8), rgba(30, 77, 146, 0.6));
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bonus-label {
    font-size: 9px;
    color: var(--text-light);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bonus-value {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1.2;
}

/* === Features COMPACT (Show only 2) === */
.casino-features {
    margin-bottom: 10px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Hide 3rd+ features on mobile */
.features-list li:nth-child(n+3) {
    display: none;
}

/* === Details HIDDEN on Mobile === */
.casino-details {
    display: none;
}

/* === Comparison Section === */
.comparison-section {
    background: var(--bg-section);
}

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-weight: 700;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--primary-blue);
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
}

.comparison-table th {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 10px 8px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
}

.comparison-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* === Info Section === */
.info-section {
    background: var(--bg-dark);
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-content > p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-light);
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
}

.criteria-card {
    background: var(--bg-section);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.criteria-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.criteria-card h3 {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.criteria-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    text-align: center;
    padding: 60px 0;
}

.cta-title {
    font-size: 26px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-text {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-cta-large {
    background: linear-gradient(135deg, var(--accent-gold), #f4c542);
    color: var(--primary-blue);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* === Footer COMPACT === */
.footer {
    background: linear-gradient(135deg, var(--primary-blue), #051429);
    padding: 40px 0 20px;
    border-top: 2px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-column {
    color: var(--text-light);
}

.footer-title {
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-license {
    font-size: 12px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-light);
    margin: 8px 0;
    line-height: 1.5;
}

.footer-warning {
    color: var(--warning-red);
    font-weight: 600;
}

/* ========================================
   TABLET BREAKPOINT (768px+)
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .main-nav {
        display: flex;
        width: auto;
        order: 2;
        padding-top: 0;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .casino-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .casino-rank {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .casino-logo-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .casino-logo-text {
        font-size: 11px;
    }
    
    .casino-name {
        font-size: 22px;
    }
    
    .casino-rating {
        font-size: 14px;
    }
    
    .stars {
        font-size: 14px;
    }
    
    .casino-bonus {
        padding: 14px;
    }
    
    .bonus-label {
        font-size: 11px;
    }
    
    .bonus-value {
        font-size: 20px;
    }
    
    .features-list li {
        font-size: 14px;
        padding: 6px 0;
    }
    
    /* Show 3 features on tablet */
    .features-list li:nth-child(3) {
        display: block;
    }
    
    /* Show details on tablet */
    .casino-details {
        display: block;
        background: var(--primary-blue);
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .detail-item {
        padding: 8px 0;
        font-size: 13px;
        color: var(--text-light);
        border-bottom: 1px solid var(--border-color);
    }
    
    .detail-item:last-child {
        border-bottom: none;
    }
    
    .detail-item strong {
        color: var(--accent-gold);
    }
    
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   DESKTOP BREAKPOINT (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title {
        font-size: 48px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .casino-card {
        padding: 35px;
        margin-bottom: 30px;
    }
    
    .casino-rank {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .casino-header {
        gap: 25px;
    }
    
    .casino-logo-placeholder {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .casino-logo-text {
        font-size: 14px;
    }
    
    .casino-name {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .casino-rating {
        gap: 15px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .rating-score {
        font-size: 18px;
    }
    
    .casino-bonus {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .bonus-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .bonus-value {
        font-size: 28px;
    }
    
    .features-list li {
        font-size: 15px;
        padding: 12px 0;
    }
    
    /* Show all 5 features on desktop */
    .features-list li:nth-child(n+3) {
        display: block;
    }
    
    .casino-details {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .detail-item {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .btn-casino {
        padding: 16px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .criteria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .cta-title {
        font-size: 48px;
    }
    
    .cta-text {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   EXTRA SMALL DEVICES (<480px)
   ======================================== */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 8px 0;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .casino-card {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .casino-rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
    
    .casino-header {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .casino-logo-placeholder {
        width: 45px;
        height: 45px;
        border-radius: 6px;
    }
    
    .casino-logo-text {
        font-size: 7px;
    }
    
    .casino-name {
        font-size: 14px;
    }
    
    .casino-rating {
        font-size: 11px;
    }
    
    .stars {
        font-size: 10px;
    }
    
    .casino-bonus {
        padding: 8px;
        margin-bottom: 8px;
        border-radius: 6px;
    }
    
    .bonus-label {
        font-size: 8px;
    }
    
    .bonus-value {
        font-size: 13px;
    }
    
    .features-list li {
        font-size: 11px;
        padding: 3px 0;
    }
    
    .btn-casino {
        padding: 10px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-text {
        font-size: 14px;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration */
.casino-card,
.btn,
.casino-rank {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize rendering */
body {
    text-rendering: optimizeSpeed;
}

h1, h2, h3, h4 {
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift */
.casino-logo-placeholder {
    content-visibility: auto;
}

/* Touch optimization */
.btn,
.nav-link,
.social-link {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .casino-card {
        border-width: 2px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .cta-section {
        display: none;
    }
    
    .casino-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* Popular Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.game-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 14px;
}

.game-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.game-provider {
    font-size: 0.82em;
    color: #aaa;
    margin-bottom: 10px;
}

.game-rtp {
    display: inline-block;
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 12px;
}

.game-desc {
    font-size: 0.88em;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-game {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-game:hover {
    opacity: 0.88;
}

@media (max-width: 968px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .games-grid { grid-template-columns: 1fr; }
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.faq-item {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #ffd700;
    border-radius: 12px;
    padding: 24px 22px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-left-color: #ff8c00;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.08);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.faq-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-question h3 {
    font-size: 1em;
    font-weight: 700;
    color: #ffd700;
    line-height: 1.4;
    margin: 0;
}

.faq-answer p {
    font-size: 0.9em;
    color: #bbb;
    line-height: 1.7;
    margin: 0;
    padding-left: 34px;
}

@media (max-width: 968px) {
    .faq-grid { grid-template-columns: 1fr; }
}
