/* Main CSS - Modern Design System */

/* Import Fredoka Font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #00D2C3;
    min-height: 100vh;
}

/* ===== TOOLBAR ===== */
.toolbar {
    width: 100%;
    height: 72px;
    background: linear-gradient(90deg, #0a2540 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(10,37,64,0.12);
    box-sizing: border-box;
}

.toolbar-logo {
    display: flex;
    align-items: center;
}

.toolbar-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

.toolbar-logo-img:hover {
    filter: brightness(1.3);
}

.toolbar-links {
    display: flex;
    gap: 28px;
}

.toolbar-link {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
    position: relative;
}

.toolbar-link:hover {
    color: #00D2C3;
}

.toolbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Profile Styles */
.user-profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar-container {
    display: flex;
    align-items: center;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: -180px; /* הזזתי עוד הרבה ימינה כדי שיהיה ממש מתחת לדמות */
    background: rgba(26, 58, 107, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 8px;
    /* תיקון למיקום - אם החלון חורג מהמסך, הוא יוזז שמאלה */
    transform-origin: top right;
}

/* תיקון למיקום החלון במסכים קטנים */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -200px; /* הזזתי עוד יותר ימינה במסכים קטנים */
        min-width: 240px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .user-dropdown-menu {
        right: -250px; /* הזזתי עוד יותר ימינה במסכים קטנים מאוד */
        min-width: 200px;
        max-width: 240px;
    }
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.dropdown-label {
    color: #00D2C3;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-username {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-balance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.balance-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.balance-icon.fa-coins {
    color: #f39c12;
}

.balance-icon.fa-gem {
    color: #9b59b6;
}

.balance-label {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.balance-amount {
    color: white;
    font-weight: 600;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    text-align: right;
}

.dropdown-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.dropdown-action i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.logout-action {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
}

.logout-action:hover {
    background: rgba(255, 107, 107, 0.1);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 72px;
    padding: 40px 20px;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===== CARDS & FORMS ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.card h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== LINKS ===== */
.link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-20 {
    gap: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .toolbar {
        height: 60px;
        padding: 0 20px;
    }
    
    .toolbar-logo-img {
        height: 35px;
    }
    
    .toolbar-links {
        gap: 15px;
    }
    
    .toolbar-link {
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-top: 60px;
        padding: 20px 15px;
    }
    
    .card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .card h1 {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .gap-20 {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .toolbar {
        padding: 0 15px;
    }
    
    .toolbar-logo-img {
        height: 30px;
    }
    
    .toolbar-links {
        gap: 10px;
    }
    
    .toolbar-link {
        font-size: 0.8rem;
    }
    
    .card {
        padding: 25px 15px;
    }
    
    .card h1 {
        font-size: 1.8rem;
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HOME PAGE REWORK 2.0 ===== */

.home-bg {
    background: #002733;
    min-height: 100vh;
}

.home-navbar {
    width: 100%;
    height: 72px;
    background: linear-gradient(90deg, #0a2540 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(10,37,64,0.12);
}
.navbar-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    text-shadow: 0 2px 12px #00d2c3, 0 1px 0 #fff;
}
.navbar-center {
    display: flex;
    gap: 28px;
}
.nav-link {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover {
    color: #00D2C3;
}
.nav-icon {
    font-size: 1.2em;
}
.navbar-right {
    display: flex;
    align-items: center;
}

/* Start Playing Button - Blue Gradient */
.navbar-play-btn {
    background: linear-gradient(90deg, #1976d2 0%, #005cb2 100%);
    color: #fff;
    border: 2.5px solid #0d47a1;
    font-size: 1.1rem;
    padding: 13px 38px;
    border-radius: 16px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 16px 0 #1976d299, 0 2px 8px 0 #1976d233;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    isolation: isolate;
}
.navbar-play-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0.0) 80%);
    transform: translateX(-100%) rotate(10deg);
    animation: shiny-stripe 3.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.navbar-play-btn:hover {
    box-shadow: 0 0 32px 0 #1976d2, 0 2px 16px 0 #1976d266;
    transform: scale(1.04);
}

/* Hero Section */
.hero-section {
    width: 100vw;
    height: 320px;
    position: relative;
    margin-top: 72px;
    overflow: hidden;
    background: none;
    max-width: 100vw;
    min-width: 320px;
    min-height: 180px;
}
.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/images/hero.png') center center/cover no-repeat;
    filter: brightness(0.97) saturate(1.08);
    z-index: 1;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    aspect-ratio: 1920/500;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 210, 195, 0.4));
    transition: all 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 32px rgba(0, 210, 195, 0.6));
}

.hero-btns {
    display: flex;
    gap: 32px;
    margin-top: 0;
}
.hero-btn {
    font-size: 1.1rem;
    padding: 13px 38px;
    border-radius: 16px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 16px 0 #00d2c3, 0 2px 8px 0 #0a254033;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    isolation: isolate;
    border: 2.5px solid transparent;
    color: #fff;
}
.hero-btn.hero-login {
    background: linear-gradient(135deg, #ff9800 0%, #ffb347 100%);
    border-color: #e65100;
    box-shadow: 0 0 16px 0 #ff9800aa, 0 2px 8px 0 #ff980033;
}
.hero-btn.hero-register {
    background: linear-gradient(135deg, #00c853 0%, #43e97b 100%);
    border-color: #087f23;
    box-shadow: 0 0 16px 0 #00c85399, 0 2px 8px 0 #00c85333;
}
.hero-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0.0) 80%);
    transform: translateX(-100%) rotate(10deg);
    animation: shiny-stripe 3.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.hero-btn:hover {
    box-shadow: 0 0 32px 0 #00d2c3, 0 2px 16px 0 #0a254066;
    transform: scale(1.04);
}

/* Below Hero: Gradient Background */
.white-central-section {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #002733;
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 0;
}
.white-central-content {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 8px 32px 0 #00d2c355, 0 2px 0 0 #e0f7fa;
    padding: 32px 48px 64px 48px;
    min-width: 340px;
    max-width: 1200px;
    width: 100%;
    min-height: 420px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.white-central-content h2 {
    font-size: 2rem;
    color: #00d2c3;
    margin-bottom: 24px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
}
.central-btns {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 18px;
}
.central-btn {
    font-size: 1.1rem;
    padding: 13px 38px;
    border-radius: 16px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    border: 2.5px solid transparent;
    box-shadow: 0 0 16px 0 #00d2c3, 0 2px 8px 0 #0a254033;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    isolation: isolate;
}
.central-login {
    background: linear-gradient(135deg, #ff9800 0%, #ffb347 100%);
    border-color: #e65100;
}
.central-register {
    background: linear-gradient(135deg, #00c853 0%, #43e97b 100%);
    border-color: #087f23;
}
.central-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0.0) 80%);
    transform: translateX(-100%) rotate(10deg);
    animation: shiny-stripe 3.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.central-btn:hover {
    box-shadow: 0 0 32px 0 #00d2c3, 0 2px 16px 0 #0a254066;
    transform: scale(1.04);
}

/* Footer - Modern Design with Enhanced Visual Appeal */
.home-footer {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a6b 50%, #002733 100%);
    color: #fff;
    width: 100%;
    border-radius: 0 0 24px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.home-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00D2C3, #1976d2, #00D2C3);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer-inner {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    border-radius: 0 0 32px 32px;
    box-shadow: 
        0 -4px 32px 0 rgba(25, 118, 210, 0.4),
        0 8px 32px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
}
.footer-links {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-link:hover {
    color: #00d2c3;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 210, 195, 0.3);
}

.footer-link:hover::before {
    left: 100%;
}
.footer-btns {
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
}
.footer-btn {
    font-size: 1.1rem;
    padding: 11px 28px;
    border-radius: 14px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    border: 2.5px solid transparent;
    box-shadow: 0 0 12px 0 #1976d2, 0 2px 8px 0 #1976d233;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    isolation: isolate;
}
.footer-login {
    background: linear-gradient(135deg, #ff9800 0%, #ffb347 100%);
    border-color: #e65100;
}
.footer-register {
    background: linear-gradient(135deg, #00c853 0%, #43e97b 100%);
    border-color: #087f23;
}
.footer-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 60%, rgba(255,255,255,0.5) 70%, rgba(255,255,255,0.0) 80%);
    transform: translateX(-100%) rotate(10deg);
    animation: shiny-stripe 3.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.footer-btn:hover {
    box-shadow: 0 0 24px 0 #1976d2, 0 2px 12px 0 #1976d266;
    transform: scale(1.04);
}
.footer-copy {
    font-size: 0.95rem;
    color: #b3e6e2;
    margin-top: 16px;
    text-align: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.footer-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.footer-copy:hover::before {
    left: 100%;
}

@media (max-width: 900px) {
    .white-central-content, .footer-inner { 
        max-width: 98vw; 
        padding-left: 6px; 
        padding-right: 6px; 
    }
    .footer-links { 
        gap: 12px; 
        padding: 0 8px;
    }
    .footer-socials {
        gap: 20px;
    }
    .footer-policy-links {
        gap: 16px;
        padding: 8px;
    }
}
@media (max-width: 600px) {
    .white-central-content, .footer-inner { 
        max-width: 100vw; 
        border-radius: 0; 
    }
    .home-footer { 
        border-radius: 0; 
    }
    .footer-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    .footer-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    .footer-socials {
        gap: 16px;
    }
    .footer-social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .footer-policy-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    .footer-policy-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .footer-copy {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

@keyframes shiny-stripe {
    0% { transform: translateX(-100%) rotate(10deg); }
    80% { transform: translateX(120%) rotate(10deg); }
    100% { transform: translateX(120%) rotate(10deg); }
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    display: block;
    margin-right: 0;
    margin-left: 0;
    object-fit: contain;
    vertical-align: middle;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 24px 0 16px 0;
    flex-wrap: wrap;
}

.footer-social-btn {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.footer-social-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 
        0 8px 32px rgba(25, 118, 210, 0.4),
        0 4px 16px rgba(0, 210, 195, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00D2C3, #1976d2, #00D2C3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-btn:hover::before {
    opacity: 1;
}

/* סגנונות ספציפיים לכל רשת חברתית */
.footer-social-btn .fa-discord:hover {
    color: #7289da;
}

.footer-social-btn .fa-youtube:hover {
    color: #ff0000;
}

.footer-social-btn .fa-facebook:hover {
    color: #1877f2;
}

.footer-social-btn .fa-instagram:hover {
    color: #e4405f;
}
@media (max-width: 900px) {
    .footer-socials {
        gap: 20px;
    }
    .footer-social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
@media (max-width: 600px) {
    .footer-socials {
        gap: 6px;
    }
    .footer-social-btn img {
        max-width: 60px;
    }
}

/* Remove old footer-btns styles if present */
.footer-btns { display: none !important; }

.welcome-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.welcome-text {
    flex: 1 1 320px;
    min-width: 220px;
    text-align: right;
    font-size: 1.2rem;
    color: #222;
    line-height: 1.8;
}
.welcome-text h2 {
    font-size: 2.4rem;
    color: #00d2c3;
    margin-bottom: 24px;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.welcome-img {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.welcome-img img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px 0 #0001;
    transition: transform 0.2s, box-shadow 0.2s;
}
.welcome-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px 0 #0002;
}
@media (max-width: 900px) {
    .welcome-flex {
        flex-direction: column-reverse;
        gap: 24px;
        align-items: center;
    }
    .welcome-img img {
        max-width: 220px;
    }
    .welcome-text {
        font-size: 1.1rem;
    }
    .welcome-text h2 {
        font-size: 2rem;
    }
}

.footer-policy-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px 0 12px 0;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-policy-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Fredoka', 'Segoe UI', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-policy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 195, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-policy-btn:hover {
    color: #00d2c3;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 210, 195, 0.2);
}

.footer-policy-btn:hover::before {
    left: 100%;
}
@media (max-width: 600px) {
    .footer-policy-links {
        gap: 12px;
    }
    .footer-policy-btn {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
} 

@media (max-width: 900px) {
  .hero-section {
    height: 180px;
  }
  .hero-bg-img {
    background-position: center center;
    aspect-ratio: unset;
  }
  .hero-logo-img {
    height: 80px;
  }
  .hero-btns {
    margin-top: 20px;
  }
}
@media (max-width: 600px) {
  .hero-section {
    height: 90px;
  }
  .hero-bg-img {
    background-size: cover;
    background-position: center center;
  }
  .hero-logo-img {
    height: 60px;
  }
  .hero-btns {
    margin-top: 10px;
    flex-direction: column;
    gap: 8px;
  }
} 

/* --- Home Features Grid --- */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0 0 32px 0;
  padding: 0 12px;
}
.feature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #0001;
  padding: 32px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 340px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  box-shadow: 0 8px 32px 0 #00d2c355, 0 2px 0 0 #e0f7fa;
  transform: translateY(-6px) scale(1.03);
}
.feature-icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  margin-top: 0;
}
/* תמונה בכרטיס (אם תשתמש) */
.feature-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 18px;
  object-fit: cover;
  box-shadow: 0 2px 12px #0001;
}
.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d2c3;
  margin-bottom: 12px;
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
  text-align: center;
}
.feature-desc {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 22px;
  line-height: 1.7;
  text-align: center;
}
.feature-btn {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 28px;
  margin-top: auto;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 #00d2c322;
  text-align: center;
}
.feature-btn-blue { background: linear-gradient(90deg, #1976d2 0%, #005cb2 100%); }
.feature-btn-green { background: linear-gradient(90deg, #00c853 0%, #43e97b 100%); }
.feature-btn-purple { background: linear-gradient(90deg, #a259c6 0%, #6a11cb 100%); }
.feature-btn-orange { background: linear-gradient(90deg, #ff9800 0%, #ffb347 100%); }
.feature-btn:hover { filter: brightness(1.08); transform: scale(1.04); }

@media (max-width: 1100px) {
  .home-features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-card { min-height: 320px; }
}
@media (max-width: 700px) {
  .home-features-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { min-height: 0; padding: 22px 8px 18px 8px; }
}

/* ===== BLOG SECTION ===== */
.blog-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 2px solid #f0f0f0;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.blog-view-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.blog-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.blog-view-all i {
    font-size: 0.9rem;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.blog-post-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 3rem;
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.blog-post-author {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-post-date {
    color: #999;
    font-size: 0.85rem;
}

.blog-post-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.blog-post-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.blog-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.blog-error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-header h2 {
        font-size: 1.8rem;
    }
    
    .blog-posts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-post-card {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .blog-section {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .blog-header h2 {
        font-size: 1.6rem;
    }
    
    .blog-view-all {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .blog-post-card {
        padding: 18px;
    }
    
    .blog-post-title {
        font-size: 1.2rem;
    }
    
    .blog-post-image {
        height: 150px;
    }
} 

/* Responsive Design for User Profile */
@media (max-width: 768px) {
    .user-profile-container {
        gap: 8px;
    }
    
    .character-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-dropdown-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .user-dropdown-menu {
        min-width: 240px;
        right: -20px;
    }
    
    .dropdown-username {
        font-size: 0.8rem;
    }
    
    .balance-item {
        font-size: 0.8rem;
    }
    
    .dropdown-action {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .user-profile-container {
        gap: 6px;
    }
    
    .character-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-dropdown-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .user-dropdown-menu {
        min-width: 200px;
        right: -30px;
    }
    
    .dropdown-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .dropdown-label,
    .dropdown-username {
        font-size: 0.8rem;
    }
    
    .balance-item {
        font-size: 0.75rem;
    }
    
    .dropdown-action {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .toolbar {
        height: 56px;
        padding: 0 6px;
    }
    .toolbar-logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .toolbar {
        padding: 8px 15px;
    }
    .toolbar-logo {
        font-size: 1.2rem;
    }
    .toolbar-links {
        gap: 10px;
    }
    .toolbar-link {
        font-size: 0.7rem;
    }
} 

/* תיקון למרכזיות הסרגל כשאין משתמש */
.toolbar-user:empty {
    display: none;
}

/* וידוא שהסרגל ממורכז כשאין משתמש */
.toolbar:has(.toolbar-user:empty) {
    justify-content: center;
}

.toolbar:has(.toolbar-user:empty) .toolbar-links {
    margin: 0 auto;
}

/* Custom error message styles for brute force protection */
.custom-error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    color: #c33;
    font-size: 0.9rem;
}

.custom-error-message.blocked-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.custom-error-message.delay-error {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #d97706;
}

.custom-error-message .error-icon {
    flex-shrink: 0;
}

.custom-error-message div {
    flex: 1;
} 