/**
 * Forayz Standalone Page Styles
 *
 * Standalone-specific UI elements for /forayz/ page
 * Includes: loading indicators, user menu, profile dropdown, notifications
 *
 * Last updated: 2026-02-12
 */

/* ============================
   Loading & Error Indicators
   ============================ */

/* Loading indicator */
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 18px;
    z-index: 9999;
    display: none;
}

#loading-indicator.active {
    display: block;
}

/* Error display */
#error-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f44336;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    z-index: 9999;
    display: none;
    max-width: 90%;
}

#error-display.active {
    display: block;
}

/* ============================
   Header Navigation Links
   ============================ */

/* Header Links (About, Guide, App Downloads) */
.header-about-link,
.header-guide-link,
.header-app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.header-about-link:hover,
.header-guide-link:hover,
.header-app-link:hover {
    background: #e0e0e0;
    border-color: #999;
    color: #000;
    text-decoration: none;
}

.header-about-link i,
.header-guide-link i,
.header-app-link i {
    font-size: 16px;
}

/* iOS App Link - Apple brand color */
.header-app-link.ios {
    background: #f5f5f5;
    border-color: #ccc;
}

.header-app-link.ios:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Android App Link - Google Play colors */
.header-app-link.android {
    background: #f5f5f5;
    border-color: #ccc;
}

.header-app-link.android:hover {
    background: #3DDC84;
    border-color: #3DDC84;
    color: #fff;
}

/* ============================
   User Menu (Authentication)
   ============================ */

/* User Menu */
#user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

/* Login/Signup button styles (only for logged-out state) */
#user-menu #login-btn,
#user-menu #signup-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

#user-menu #login-btn:hover,
#user-menu #signup-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

#user-menu #login-btn {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

#user-menu #login-btn:hover {
    background: #45a049;
    border-color: #45a049;
}

#user-menu #signup-btn {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

#user-menu #signup-btn:hover {
    background: #0b7dda;
    border-color: #0b7dda;
}

/* ============================
   Profile Menu (Logged-in State)
   ============================ */

/* Profile Menu Styles */
.profile-menu-wrapper {
    position: relative;
}

.profile-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.profile-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-initials {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pro-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #FFD700;
    color: #333;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 250px;
    z-index: 1001;
    overflow: hidden;
}

.profile-dropdown-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-dropdown-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-dropdown-email {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.profile-dropdown-pro {
    font-size: 12px;
    background: #FFD700;
    color: #333;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.profile-dropdown-free {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.profile-dropdown-menu {
    padding: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-menu-item:hover {
    background: #f5f5f5;
}

.profile-menu-item i {
    width: 16px;
    text-align: center;
    color: #666;
}

.profile-menu-upgrade {
    color: #FFD700;
    font-weight: 600;
}

.profile-menu-upgrade i {
    color: #FFD700;
}

.profile-menu-logout {
    color: #f44336;
    border-top: 1px solid #eee;
}

.profile-menu-logout i {
    color: #f44336;
}

/* ============================
   User Status Notifications
   ============================ */

/* User Status Notifications */
.user-status-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.user-status-notification .notification-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.user-status-notification h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.user-status-notification p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.user-status-notification .notification-close {
    position: absolute;
    top: -5px;
    right: -10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.user-status-notification .notification-close:hover {
    color: #333;
}

.user-status-success {
    border-left: 4px solid #4CAF50;
}

.user-status-info {
    border-left: 4px solid #2196F3;
}

/* ============================
   Responsive Design
   ============================ */

/* Responsive: Hide text on mobile, show only icons */
@media only screen and (max-width: 768px) {
    .header-about-link span,
    .header-guide-link span,
    .header-app-link span {
        display: none;
    }

    .header-about-link,
    .header-guide-link,
    .header-app-link {
        padding: 10px 12px;
    }
}
