/* ============================================================================
   DWELLVERSE TEAM PAGE STYLES
   ============================================================================ */

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Team Hero Section */
.team-hero-section {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg,
        rgba(176, 137, 104, 0.15) 0%,
        rgba(201, 184, 163, 0.1) 40%,
        rgba(201, 184, 163, 0.05) 70%,
        transparent 100%);
    position: relative;
}

.team-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-coral) 20%,
        var(--accent-teal) 50%,
        var(--accent-coral) 80%,
        transparent 100%);
}

.team-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.team-hero-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(176, 137, 104, 0.3);
}

.team-hero-content .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary-light);
    font-weight: 500;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 1.5rem 2rem 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Agent Card */
.agent-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-coral);
}

/* Agent Image Placeholder */
.agent-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 24px var(--accent-coral-vibrant);
    transition: all var(--transition-speed);
}

.agent-card:hover .agent-image-placeholder {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--accent-teal-vibrant);
}

.agent-initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Agent Info */
.agent-info {
    width: 100%;
}

.agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.agent-title {
    font-size: 0.95rem;
    color: var(--accent-coral);
    margin-bottom: 1rem;
    font-weight: 600;
}

.agent-contact {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.agent-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all var(--transition-speed);
    border: 1px solid var(--glass-border-light);
}

.agent-email:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-email svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Social Links */
.agent-social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border-light);
    color: var(--text-secondary-light);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-coral-vibrant);
    border-color: transparent;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Agent Button */
.btn-contact-agent {
    width: 100%;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px var(--accent-coral-vibrant);
}

.btn-contact-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-coral-vibrant);
    filter: brightness(1.1);
}

.btn-contact-agent:active {
    transform: translateY(0);
}

/* ============================================================================
   ORGANIZATIONAL CHART STYLES
   ============================================================================ */

/* Org Chart Leader Section */
.org-leader {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.leader-card {
    max-width: 450px;
    border: 3px solid var(--accent-coral);
    box-shadow: 0 12px 40px rgba(176, 137, 104, 0.25);
    transform: scale(1.05);
    background: white;
}

.leader-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 16px 40px var(--accent-coral-vibrant);
}

.leader-image {
    width: 140px;
    height: 140px;
    border: 3px solid var(--accent-teal);
    box-shadow: 0 12px 32px var(--accent-teal-vibrant);
}

.leader-image .agent-initial {
    font-size: 3.5rem;
}

.leader-card:hover .leader-image {
    box-shadow: 0 16px 40px var(--accent-teal-vibrant);
}

/* Org Chart Connector Line */
.org-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent-coral) 0%, var(--accent-teal) 100%);
    margin: 0 auto 1.5rem;
    position: relative;
}

.org-connector::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent-teal);
}

/* Agent Bio */
.agent-bio {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Agent Specialties (if added later) */
.agent-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.specialty-tag {
    padding: 0.5rem 1.125rem;
    background: rgba(176, 137, 104, 0.15);
    border: 1.5px solid var(--accent-coral);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Agent Stats (if added later) */
.agent-stats {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary-light);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .team-hero-section {
        min-height: 35vh;
        padding: 5rem 1.5rem 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .agent-card {
        padding: 1.5rem;
    }

    .agent-image-placeholder {
        width: 100px;
        height: 100px;
    }

    .agent-initial {
        font-size: 2.5rem;
    }

    .agent-name {
        font-size: 1.35rem;
    }

    /* Org Chart Responsive */
    .leader-card {
        max-width: 100%;
        transform: scale(1);
    }

    .leader-card:hover {
        transform: scale(1.02) translateY(-4px);
    }

    .leader-image {
        width: 120px;
        height: 120px;
    }

    .leader-image .agent-initial {
        font-size: 3rem;
    }

    .org-connector {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .agent-email {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .agent-image-placeholder {
        width: 100px;
        height: 100px;
    }

    .agent-initial {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   APPOINTMENT BOOKING MODAL STYLES
   ============================================================================ */

.booking-step {
    animation: fadeIn 0.3s ease;
}

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

/* Booking Calendar */
.booking-calendar {
    background: rgba(240, 240, 245, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--accent-coral);
    transition: transform 0.2s ease;
}

.calendar-nav-btn:hover {
    transform: scale(1.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-day:hover:not(.calendar-day-disabled):not(.calendar-day-selected) {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-teal);
}

.calendar-day-disabled {
    color: #ccc;
    cursor: not-allowed;
    background: transparent;
}

.calendar-day-selected {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-teal) 100%);
    color: white;
    font-weight: 600;
    border-color: transparent;
}

.calendar-day-other-month {
    opacity: 0.3;
}

/* Time Slots */
.time-slots-container {
    background: rgba(240, 240, 245, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: white;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.time-slot-disabled):not(.time-slot-selected) {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.time-slot-disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: transparent;
}

.time-slot-selected {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-teal) 100%);
    color: white;
    border-color: transparent;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Modal Large Size */
.modal-large {
    max-width: 900px;
    width: 95%;
}

/* Loading State */
.time-slots-loading {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-coral);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Booking Modal */
@media (max-width: 768px) {
    .modal-large {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    #bookingStep2 > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .time-slot-grid {
        grid-template-columns: 1fr;
    }
}
