/* Authentication Styles */

/* Login Button */
.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.login-btn {
    background: #1e3a8a; /* Blue-900 matching Apply button */
    color: white;
}

.login-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Modal Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}

/* Profile Dropdown */
#profile-dropdown {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: white;
}

#profile-dropdown a,
#profile-dropdown button {
    font-size: 0.9rem;
}

/* Mobile Auth Section */
#mobile-auth-section {
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Profile Page Styles - Matching site design */
.profile-section {
    min-height: calc(100vh - 80px);
    padding: 5rem 0;
    background: white;
}

.profile-section .container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* Profile Header - Cleaner design matching site */
.profile-section .bg-gradient-to-r {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 1rem 1rem 0 0;
    padding: 2rem;
}

/* Profile Avatar */
#profile-avatar {
    object-fit: cover;
    width: 96px;
    height: 96px;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#change-avatar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1e3a8a;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

#change-avatar-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* Edit Profile Button - Matching site buttons */
#edit-profile-btn {
    background: white;
    color: #1e3a8a;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid white;
    transition: all 0.2s ease;
}

#edit-profile-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

/* Profile Content Card */
.profile-section .bg-white.rounded-b-lg {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
}

/* Section Headers - Matching category-title style */
.profile-section h3 {
    position: relative;
    margin-bottom: 1.5rem;
    color: #1a365d;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3b82f6;
}

/* Profile Cards - Matching logo-card style */
.profile-section .bg-gray-50 {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.profile-section .bg-gray-50:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Inputs - Clean styling */
.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section input[type="tel"],
.profile-section input[type="url"],
.profile-section input[type="file"],
.profile-section textarea {
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.profile-section input:focus,
.profile-section textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons - Matching site button style */
.profile-section button[type="submit"] {
    background: #1e3a8a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #1e3a8a;
}

.profile-section button[type="submit"]:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#cancel-edit-btn {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

#cancel-edit-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Resume Download Link - Matching site style */
#resume-section a {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

#resume-section a:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Contact Info Grid */
.profile-section .grid {
    gap: 1.5rem;
}

/* Icons styling */
.profile-section svg {
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-section {
        padding: 2rem 0;
    }
    
    .profile-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .profile-section .bg-gradient-to-r {
        padding: 1.5rem;
    }
    
    .profile-section .bg-gradient-to-r .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .profile-section #edit-profile-btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    #profile-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Modal Styles - Matching site design */
#login-modal,
#signup-modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
}

#login-modal > div,
#signup-modal > div {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modal Buttons */
#login-modal button[type="submit"],
#signup-modal button[type="submit"] {
    background: #1e3a8a;
    border: none;
}

#login-modal button[type="submit"]:hover,
#signup-modal button[type="submit"]:hover {
    background: #1e40af;
}

/* Loading State */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Notifications - Sleek design */
.notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

/* User Avatar in Navbar */
#user-avatar,
#mobile-user-avatar {
    object-fit: cover;
}

/* Desktop Auth Section Border */
#auth-section {
    border-left: 1px solid rgba(156, 163, 175, 0.3);
}

/* Google Sign In Button - Clean style */
#google-signin-btn {
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

#google-signin-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Edit Mode Transitions */
#view-mode,
#edit-mode {
    transition: opacity 0.3s ease;
}

/* File Input Styling - Matching site style */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: #1e3a8a;
    color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

input[type="file"]::file-selector-button:hover {
    background: #1e40af;
}

/* Responsive Modal */
@media (max-width: 640px) {
    #login-modal > div,
    #signup-modal > div {
        margin: 1rem;
        max-width: 100%;
    }
}

/* Profile Info Text */
.profile-section p {
    color: #4b5563;
    line-height: 1.75;
}

/* Empty State Text */
.profile-section .text-gray-600 {
    color: #6b7280;
    font-style: italic;
}

/* Link Styling */
.profile-section a:not(.logo-card) {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-section a:not(.logo-card):hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Section Spacing */
.profile-section > div > div {
    margin-bottom: 2rem;
}

/* Bio Section */
#profile-bio {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Contact Info Icons - Matching site colors */
.profile-section .text-gray-400 {
    color: #9ca3af;
}

/* Position/Company Display */
#profile-position {
    color: #1f2937;
    font-weight: 600;
}

#profile-company {
    color: #6b7280;
}

/* Error Messages in Forms */
.profile-section [id$="-error"] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Success State */
.profile-section .success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Profile Header - Email should be white for visibility */
#profile-email {
    color: white !important;
    opacity: 0.95;
}

/* Membership Status Badge Styles */
#membership-status-badge {
    margin-top: 0.5rem;
}

#interest-status-badge {
    margin-top: 0.5rem;
}

#status-badge {
    backdrop-filter: blur(10px);
}

#status-badge svg {
    flex-shrink: 0;
}