/* ====== ENHANCED TALENT PROFILE PAGE STYLES ====== */

/* CSS Variables */
:root {
    --profile-primary: #f77329;
    --profile-secondary: #e55a1f;
    --profile-dark: #2c3e50;
    --profile-light: #f8f9fa;
    --profile-white: #ffffff;
    --profile-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --profile-shadow-hover: 0 12px 35px rgba(247, 115, 41, 0.2);
    --profile-border-radius: 20px;
    --profile-small-radius: 12px;
    --profile-gradient: linear-gradient(135deg, #f77329 0%, #e55a1f 100%);
    --profile-background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
}

/* Main Container Enhancement */
main {
    background: var(--profile-background);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Page Banner Enhancement */
.page-banner {
    position: relative;
    background: var(--profile-gradient) !important;
    min-height: 300px !important;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="profile-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23profile-pattern)"/></svg>');
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Profile Section */
.featured-talent {
    background: transparent;
    padding: 0 !important;
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

.featured-talent .container {
    background: #fff;
    border-radius: var(--profile-border-radius);
    box-shadow: var(--profile-shadow);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-talent .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--profile-gradient);
    z-index: 1;
}

/* Profile Header Enhancement */
.profile-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(247, 115, 41, 0.03) 0%, rgba(247, 115, 41, 0.01) 100%);
    border-radius: var(--profile-border-radius);
    border: 1px solid rgba(247, 115, 41, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 115, 41, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

@media (min-width: 992px) {
    .profile-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .profile-main-info {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
}

/* Enhanced Profile Image */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.user-profile {
    width: 150px !important;
    height: 150px !important;
    max-width: none !important;
    border-radius: 50% !important;
    border: 4px solid var(--profile-white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: var(--profile-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
    animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@media (min-width: 768px) {
    .user-profile {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Profile Details Enhancement */
.profile-details {
    flex-grow: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #f16a26;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .profile-name {
        font-size: 2.5rem;
    }
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.profile-meta-item i {
    color: var(--profile-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-meta-separator {
    color: rgba(247, 115, 41, 0.3);
    margin: 0 8px;
    font-weight: bold;
}

/* Enhanced Section Cards */
.user-info {
    background: var(--profile-white) !important;
    border-radius: var(--profile-border-radius) !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: var(--profile-shadow) !important;
    border: 1px solid rgba(247, 115, 41, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--profile-gradient);
    z-index: 1;
}

.user-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--profile-shadow-hover) !important;
}

.user-info h4 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--profile-dark) !important;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.user-info h4::before {
    content: '';
    width: 6px;
    height: 30px;
    background: var(--profile-gradient);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Enhanced Media Cards */
.card {
    border: 1px solid rgba(247, 115, 41, 0.1) !important;
    border-radius: var(--profile-border-radius) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 115, 41, 0.15) !important;
}

.card-body {
    padding: 25px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Enhanced Video Container */
.video-wrapper {
    position: relative;
    border-radius: var(--profile-small-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--profile-dark);
}

.video-wrapper video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: var(--profile-small-radius);
}

/* Enhanced Audio Player */
.card audio {
    width: 100% !important;
    border-radius: var(--profile-small-radius) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Image Gallery */
.talent-profile-images {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
    padding: 0 !important;
}

.talent-profile-images > a {
    width: 100% !important;
    padding: 0 !important;
    border-radius: var(--profile-small-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.talent-profile-images > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(247, 115, 41, 0.2) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.talent-profile-images > a:hover::before {
    opacity: 1;
}

.talent-profile-images > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(247, 115, 41, 0.2);
}

.talent-profile-images img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: var(--profile-small-radius) !important;
    transition: all 0.3s ease !important;
}

.talent-profile-images > a:hover img {
    transform: scale(1.05);
}

/* Enhanced Button Styles */
.btn-primary {
    background: var(--profile-gradient) !important;
    border: none !important;
    border-radius: var(--profile-small-radius) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(247, 115, 41, 0.4) !important;
    color: white !important;
}

/* Enhanced Badges and Skills */
.badge {
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    margin: 4px !important;
    transition: all 0.3s ease !important;
}

.badge.bg-primary {
    background: var(--profile-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(247, 115, 41, 0.3) !important;
}

.badge.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 115, 41, 0.4) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white !important;
}

.skills-container {
    background: linear-gradient(135deg, rgba(247, 115, 41, 0.05) 0%, rgba(247, 115, 41, 0.02) 100%) !important;
    border-radius: var(--profile-border-radius) !important;
    padding: 20px !important;
    border: 1px solid rgba(247, 115, 41, 0.1) !important;
}

.skill-group {
    margin-bottom: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: 20px !important;
}

/* Enhanced Measurements Section */
.user-additional-information {
    background: linear-gradient(135deg, #eb6222 0%, #7e452b 100%);
    border-radius: var(--profile-border-radius);
    padding: 25px;
    border: 1px solid rgba(247, 115, 41, 0.1);
    margin-top: 20px;
}

.user-additional-information p {
    margin-bottom: 12px !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(247, 115, 41, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-additional-information p:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.user-additional-information strong {
    color: var(--profile-dark);
    font-weight: 600;
}

/* Enhanced Text Muted */
.text-muted {
    --bs-text-opacity: 1;
    color: #6c757d !important;
}

/* Enhanced Hand Model Section */
.img-thumbnail {
    border: 3px solid var(--profile-primary) !important;
    border-radius: var(--profile-small-radius) !important;
    padding: 4px !important;
    margin: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.img-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 115, 41, 0.3) !important;
}

.hand-model-video {
    border-radius: var(--profile-small-radius) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced Layout Grid */
.row.g-3.g-lg-5 {
    --bs-gutter-x: 2rem !important;
    --bs-gutter-y: 2rem !important;
}

@media (min-width: 992px) {
    .row.g-3.g-lg-5 {
        --bs-gutter-x: 3rem !important;
        --bs-gutter-y: 3rem !important;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .user-profile {
        max-width: 120px !important;
        width: 120px !important;
        height: 120px !important;
    }
    
    .profile-name {
        font-size: 1.5rem !important;
    }
    
    .user-info {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .user-info h4 {
        font-size: 1.2rem !important;
    }
    
    .featured-talent .container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .profile-header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-main-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .talent-profile-images {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .talent-profile-images img {
        height: 150px !important;
    }
}

@media (max-width: 576px) {
    .profile-image-container::before {
        display: none;
    }
    
    .talent-profile-images {
        grid-template-columns: 1fr !important;
    }
    
    .user-info h4::before {
        display: none;
    }
}

/* Enhanced Loading States */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(247, 115, 41, 0.3);
    border-top: 3px solid var(--profile-primary);
    border-radius: 50%;
    animation: video-loading 1s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes video-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Accessibility */
.user-info:focus-within {
    outline: 3px solid rgba(247, 115, 41, 0.5);
    outline-offset: 2px;
}

.talent-profile-images > a:focus {
    outline: 3px solid rgba(247, 115, 41, 0.5);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    .user-info,
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .user-info::before,
    .profile-header::before,
    .profile-image-container::before {
        display: none;
    }
    
    .talent-profile-images > a::before {
        display: none;
    }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --profile-dark: #ffffff;
        --profile-light: #2c3e50;
        --profile-white: #1a1a1a;
    }
    
    .user-info {
        background: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    .card-body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
        color: #ffffff;
    }
}

/* Enhanced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .user-info,
    .card,
    .talent-profile-images > a,
    .badge,
    .btn-primary,
    .img-thumbnail {
        transition: none !important;
    }
    
    .profile-image-container::before {
        animation: none;
    }
    
    .user-info:hover,
    .card:hover,
    .talent-profile-images > a:hover {
        transform: none !important;
    }
}

/* Floating Action Elements */
.profile-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--profile-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(247, 115, 41, 0.3);
    transition: all 0.3s ease;
}

.profile-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247, 115, 41, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .profile-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .profile-action-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Enhanced Section Dividers */
hr {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, var(--profile-primary) 50%, transparent 100%) !important;
    margin: 40px 0 !important;
    opacity: 0.3 !important;
}

/* Enhanced Typography */
.user-info p {
    line-height: 1.6;
    color: #fff;
    margin-bottom: 12px;
}

.user-info strong {
    color: var(--profile-dark);
    font-weight: 600;
}

/* Enhanced Text Links */
.user-info a {
    color: var(--profile-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-info a:hover {
    color: var(--profile-secondary);
    text-decoration: underline;
}

/* Enhanced Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

/* Enhanced Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--profile-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple elements */
.user-info:nth-child(1) { animation-delay: 0.1s; }
.user-info:nth-child(2) { animation-delay: 0.2s; }
.user-info:nth-child(3) { animation-delay: 0.3s; }
.user-info:nth-child(4) { animation-delay: 0.4s; }
.user-info:nth-child(5) { animation-delay: 0.5s; }

/* ====== STEP 3 & STEP 4 PROFILE SECTIONS ====== */

/* Transportation & Representation Section */
.user-info .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--profile-small-radius);
    font-weight: 500;
    text-transform: capitalize;
}

.user-info .badge.bg-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.user-info .badge.bg-danger {
    background: linear-gradient(45deg, #dc3545, #e74c3c) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.user-info .badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800) !important;
    color: #212529 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.user-info .badge.bg-primary {
    background: var(--profile-gradient) !important;
    box-shadow: 0 2px 8px rgba(247, 115, 41, 0.3);
}

.user-info .badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Hand Model Gallery */
.hand-model-gallery {
    margin-top: 1rem;
}

.hand-image-card {
    position: relative;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hand-image-card:hover {
    transform: translateY(-5px);
}

.hand-image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--profile-small-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hand-image-card img:hover {
    box-shadow: var(--profile-shadow-hover);
    transform: scale(1.02);
}

.hand-image-card small {
    color: var(--profile-dark);
    font-weight: 500;
    font-size: 0.8rem;
}

.hand-model-gallery video {
    border-radius: var(--profile-small-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--profile-light);
}

/* Enhanced Badge Styles for License Countries */
.user-additional-information .badge {
    margin: 0.2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.user-additional-information .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Improvements for Step 3 & 4 Sections */
@media (max-width: 768px) {
    .hand-image-card img {
        height: 120px;
    }
    
    .user-additional-information p {
        margin-bottom: 0.75rem;
    }
    
    .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

@media (max-width: 576px) {
    .hand-model-gallery .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .hand-image-card img {
        height: 100px;
    }
    
    .hand-image-card small {
        font-size: 0.7rem;
    }
}

/* Animation for New Sections */
.user-info[data-section="transportation"],
.user-info[data-section="hand-model"] {
    animation: slideUp 0.6s ease-out;
}

/* Special styling for manager/agent info */
.user-additional-information p strong {
    color: var(--profile-dark);
    font-weight: 600;
}

.user-additional-information p span {
    color: #6c757d;
}

/* Icon styling enhancements */
.user-info h4 i.fa-car,
.user-info h4 i.fa-hand-paper {
    color: var(--profile-primary);
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* Additional Information Text Styling */
.user-additional-information p span {
    color: #ffffff;
}
