/* Auth Modal Specific Styling */
#auth-modal .modal-content {
    max-width: 400px !important;
    width: 90% !important;
    padding: 30px !important;
}

/* Auth container within modal */
.auth-container {
    max-width: 100% !important;
}

/* Auth header */
.auth-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-title {
    font-size: 24px !important;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px !important;
    color: var(--text-secondary);
}

/* Form groups */
#auth-form .form-group {
    margin-bottom: 16px;
}

#auth-form label {
    font-size: 14px !important;
    margin-bottom: 6px;
    display: block;
}

#auth-form input {
    font-size: 14px !important;
    padding: 10px 12px !important;
    width: 100%;
}

/* Submit button */
#auth-submit-btn {
    margin-top: 20px;
    padding: 12px !important;
    font-size: 16px !important;
}

/* Social auth section */
.social-auth {
    margin-top: 20px;
}

.social-auth .btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    transition: all 0.2s ease;
}

.social-auth .btn:hover {
    background: #f8f9fa !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

/* Google icon in button */
.social-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* Google SVG colors */
.social-auth svg path:nth-child(1) { fill: #4285f4; }
.social-auth svg path:nth-child(2) { fill: #34a853; }
.social-auth svg path:nth-child(3) { fill: #fbbc05; }
.social-auth svg path:nth-child(4) { fill: #ea4335; }

/* Auth divider */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider span {
    background: var(--bg-secondary);
    padding: 0 16px;
    position: relative;
    font-size: 12px;
    color: var(--text-secondary);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

/* Auth footer */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px !important;
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Modal close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Password strength meter */
.password-strength {
    display: none;
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

/* Form hint */
.form-hint {
    font-size: 12px !important;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #auth-modal .modal-content {
        width: 95% !important;
        padding: 20px !important;
        margin: 16px;
    }
    
    .auth-title {
        font-size: 20px !important;
    }
}

/* Auth-only elements - hidden by default */
.auth-only {
    display: none;
}

/* Show auth-only elements when authenticated */
body.authenticated .auth-only {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific styling for nav links */
body.authenticated .nav-link.auth-only {
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Go Live button shows for authenticated users */
body.authenticated #go-live-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide guest-only elements when authenticated */
body.authenticated .guest-only {
    display: none !important;
}

/* Override any conflicting styles */
body.authenticated .nav-links {
    display: flex !important;
    gap: 24px !important;
}

body.authenticated .nav-links .nav-link {
    display: inline-flex !important;
}

/* Ensure nav links don't disappear */
.nav-links {
    min-height: 40px;
    display: flex !important;
    visibility: visible !important;
}

.nav-link {
    white-space: nowrap;
}

/* Force nav links to always be visible with proper styling */
.nav-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 24px !important;
    align-items: center !important;
    z-index: 10 !important;
    position: relative !important;
}

.nav-links .nav-link {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text-secondary, #b8b8b8) !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    align-items: center !important;
}

.nav-links .nav-link:hover {
    color: var(--text-primary, #ffffff) !important;
    background: var(--bg-hover, rgba(255, 255, 255, 0.1)) !important;
}

.nav-links .nav-link.active {
    color: var(--brand-primary, #9147ff) !important;
    background: rgba(145, 71, 255, 0.1) !important;
}

/* Override ALL media queries that hide nav links */
@media screen and (max-width: 1200px) {
    .nav-links {
        display: flex !important;
        gap: 16px !important;
    }
    
    .nav-links .nav-link {
        font-size: 14px !important;
        padding: 6px 12px !important;
    }
}

@media screen and (max-width: 1024px) {
    .nav-links {
        display: flex !important;
        gap: 12px !important;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: flex !important;
        gap: 8px !important;
    }
    
    .nav-links .nav-link {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

/* Only hide on very small mobile screens */
@media screen and (max-width: 480px) {
    .nav-links {
        display: none !important;
    }
}

/* Fix nav text visibility issues */
.nav-text,
.nav-item-text {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    color: inherit !important;
}

/* Ensure nav links and their text are always visible */
.header .nav-links .nav-link {
    opacity: 1 !important;
    color: #ffffff !important; /* Force white text */
}

.header .nav-links .nav-link:hover {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

/* Prism Studios special styling */
.nav-link[data-page="prism-studios"] {
    color: var(--primary-color, #9147ff) !important;
    font-weight: 500;
    display: inline-flex !important;
    opacity: 1 !important;
}

body.authenticated .nav-link[data-page="prism-studios"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-link[data-page="prism-studios"]:hover {
    color: var(--primary-color-hover, #a970ff) !important;
}

.nav-link[data-page="prism-studios"].active {
    color: var(--primary-color, #9147ff) !important;
    border-bottom-color: var(--primary-color, #9147ff);
}

/* Override any opacity rules from other CSS files */
.header * {
    opacity: 1 !important;
}

/* Ensure header nav area has proper contrast */
.header .nav-links {
    background: transparent !important;
}

/* Nav links styling complete */