/* Authentication Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

.auth-modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Archivo', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.auth-error {
    background: #ffe6e6;
    color: #d63031;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #d63031;
}

.auth-submit {
    background: #ff3366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    background: #e62e5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #ff3366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #e62e5c;
    text-decoration: underline;
}

/* User Menu Styles */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.user-btn:hover,
.user-btn:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    outline: none;
}

.user-btn i.fa-user { margin-right: 2px; }
.user-btn i.fa-chevron-down { opacity: 0.85; font-size: 0.85em; }

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17,17,17,0.82);
    color: #f3f4f6;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.24s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #f3f4f6;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: 'Archivo', sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.user-dropdown-menu a:first-child {
    border-radius: 4px 4px 0 0;
}

.user-dropdown-menu button:last-child {
    border-radius: 0 0 10px 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #ff4d4f;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.mobile-user-info span {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Archivo', sans-serif;
    text-align: center;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: #ff3366;
    color: white;
    border-color: #ff3366;
}

.btn-primary:hover {
    background: #e62e5c;
    border-color: #e62e5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #333;
}

.btn-checkout {
    background: #28a745;
    color: white;
    border-color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .user-dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
        min-width: auto;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .auth-modal h2 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 0.75rem;
    }
    
    .auth-submit {
        padding: 0.875rem;
    }
}
