/* Settings Page - Modern Design */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.settings-wrap {
    max-width: 900px;
    margin: 120px auto 50px;
    padding: 0 20px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.settings-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.settings-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: 1px;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.section-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

/* Checkbox Styles */
.settings-option {
    margin-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.08);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #9333ea;
    border-radius: 8px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border-color: #9333ea;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.checkbox-input:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-text {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
}

/* User Info Grid */
.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px solid rgba(147, 51, 234, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.6s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

.info-label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.info-value {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coins-value {
    color: #16a34a;
}

.gold-value {
    color: #ca8a04;
}

/* Badges */
.admin-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
    border: 2px solid rgba(251, 191, 36, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subscriber-badge {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(147, 51, 234, 0.3);
    border: 2px solid rgba(147, 51, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-wrap {
        margin-top: 100px;
        padding: 0 16px;
    }

    .settings-header {
        flex-direction: column;
        text-align: center;
    }

    .settings-icon {
        font-size: 40px;
    }

    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .settings-section {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .checkbox-text {
        font-size: 16px;
    }
}

/* Loading State */
.info-value:empty::after,
#usernameText:empty::after,
#subscriptionText:empty::after {
    content: 'טוען...';
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

