/* Vue v-cloak - hide elements until Vue is ready */
[v-cloak] {
    display: none !important;
}

/* Menu wrapper - contains both menu and modals */
.menu-wrapper {
    position: relative;
}

/* Skryteľné horné menu */
.top-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

/* Záložka pre otvorenie menu */
.menu-tab {
    position: absolute;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 8px 15px 12px 15px;
    border-radius: 0 0 8px 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10001;
}

.menu-tab:hover {
    padding-bottom: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #232342 0%, #1e2d4d 100%);
    color: #e0e0e0;
}

/* Samotné menu */
.top-menu {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(0);
}

.top-menu-container.hidden .top-menu {
    transform: translateY(-44px);
}

.top-menu-container.visible .top-menu {
    transform: translateY(0);
}

/* Logo sekcia */
.menu-logo {
    height: 36px;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-logo:hover {
    opacity: 0.8;
}

.menu-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.menu-logo-placeholder {
    height: 36px;
    width: 130px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Menu items */
.menu-items {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 30px;
}

.menu-item {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.menu-item:hover {
    background: transparent;
    color: #e0e0e0;
}

.menu-item:hover::after {
    width: 80%;
}

.menu-item.active {
    background: transparent;
    color: #e0e0e0;
}

.menu-item.active::after {
    width: 80%;
    background: #6366f1;
}

/* Auth buttons */
.menu-auth {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-right: 50px; /* Space for theme toggle button */
}

/* Dashboard link in auth section */
.menu-dashboard-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #9ca3af;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    position: relative;
}

.menu-dashboard-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.menu-dashboard-link:hover {
    background: transparent;
    color: #e0e0e0;
}

.menu-dashboard-link:hover::after {
    width: 80%;
}

.menu-dashboard-link.active {
    background: transparent;
    color: #e0e0e0;
}

.menu-dashboard-link.active::after {
    width: 80%;
}

.menu-auth-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.menu-signup-btn {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: not-allowed;
    opacity: 0.6;
}

.menu-signup-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-login-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
}

.menu-login-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-items {
        gap: 4px;
        margin: 0 15px;
    }

    .menu-item {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .top-menu {
        padding: 0 15px;
        height: 44px;
    }

    .menu-logo {
        height: 32px;
    }

    .menu-logo img,
    .menu-logo-placeholder {
        height: 32px;
    }

    .menu-items {
        flex-direction: column;
        gap: 4px;
        margin: 0 10px;
    }

    .menu-item {
        font-size: 11px;
        padding: 5px 8px;
    }

    .menu-auth {
        flex-direction: column;
        gap: 6px;
    }

    .menu-auth-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============================================
   User Menu Component
   ============================================ */

.user-menu-container {
    position: relative;
    cursor: pointer;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-avatar-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6366f1;
}

.user-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #6366f1;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    overflow: hidden;
}

.user-dropdown-header {
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 4px;
}

.user-email {
    color: #9ca3af;
    font-size: 12px;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 11px 14px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.user-dropdown-logout {
    color: #f87171;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown-logout:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* Tier Badge */
.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tier-badge.tier-guest {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.tier-badge.tier-user {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.tier-badge.tier-premium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.tier-badge.tier-admin {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

/* ============================================
   Login Modal (in menu context)
   ============================================ */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    backdrop-filter: blur(4px);
}

.login-modal {
    background: linear-gradient(135deg, #1e293b 0%, #1a1a2e 100%);
    border-radius: 12px;
    padding: 35px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.auth-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.login-modal-title {
    text-align: center;
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-modal-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Auth Switch Hint */
.auth-switch-hint {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-switch-hint a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch-hint a:hover {
    text-decoration: underline;
}

.login-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.oauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oauth-icon {
    width: 18px;
    height: 18px;
}

.oauth-google {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.15);
}

.oauth-google:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.oauth-microsoft {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.15);
}

.oauth-microsoft:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.admin-login-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    margin-top: 18px;
}

.admin-login-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.admin-login-toggle:hover {
    color: #9ca3af;
}

.admin-login-form {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-input {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    transition: border-color 0.2s;
}

.admin-input:focus {
    outline: none;
    border-color: #6366f1;
}

.admin-input::placeholder {
    color: #6b7280;
}

.admin-submit-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   EMAIL AUTHENTICATION STYLES
   ============================================ */

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #6b7280;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 12px;
}

.email-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-input::placeholder {
    color: #6b7280;
}

.email-auth-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.email-auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.email-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.forgot-password-link,
.back-to-login-link {
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s;
}

.forgot-password-link:hover,
.back-to-login-link:hover {
    color: #6366f1;
}

.forgot-password-text {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
}

/* Success Message */
.email-success-message {
    text-align: center;
    padding: 20px 0;
}

.email-success-message .success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.email-success-message h3 {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 10px;
}

.email-success-message p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.email-success-message .success-link {
    display: block;
    color: #667eea;
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.email-success-message .success-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Registration info text */
.register-info-text {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.register-info-text a {
    color: #667eea;
    text-decoration: none;
}

.register-info-text a:hover {
    text-decoration: underline;
}
