/* Authentication Styles for reTHINKit */

/* Auth Buttons */
.auth-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-in-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sign-in-btn:hover {
    border-color: #FF9500;
    color: #FF9500;
}

.sign-up-btn {
    background: #FF9500;
    border: 1px solid #FF9500;
    color: #ffffff;
}

.sign-up-btn:hover {
    background: #e68600;
    border-color: #e68600;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF9500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #FF9500;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #FF9500;
}

.dropdown-info {
    display: flex;
    flex-direction: column;
}

.dropdown-name {
    font-weight: 600;
    color: #ffffff;
}

.dropdown-email {
    font-size: 0.85rem;
    color: #9ca3af;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

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

.dropdown-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Nav actions flex adjustment */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Access Gate / Paywall */
.access-gate {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.gate-content {
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: gateSlideIn 0.3s ease;
}

@keyframes gateSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gate-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.gate-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.gate-content > p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gate-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.gate-btn.primary {
    background: #FF9500;
    color: #ffffff;
}

.gate-btn.primary:hover {
    background: #e68600;
    transform: translateY(-2px);
}

.gate-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.gate-btn.secondary:hover {
    border-color: #FF9500;
    color: #FF9500;
}

.gate-note {
    font-size: 0.85rem;
    color: #6b7280;
}

.gate-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: color 0.2s;
}

.gate-link:hover {
    color: #FF9500;
}

/* Pricing Card */
.pricing-card {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF9500;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.features li {
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.pricing-card .gate-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-btn {
        padding: 0.25rem;
    }
    
    .user-dropdown {
        width: 260px;
        right: -1rem;
    }
    
    .sign-in-btn {
        display: none;
    }
}
