/* Modern Creator Profile Form Styles */

/* Main Header */
.profile-main-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 50%, #6D28D9 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.profile-main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-main-header .header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-main-header .header-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.profile-main-header .header-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Responsive Header */
@media (max-width: 768px) {
    .profile-main-header {
        padding: 24px;
    }

    .profile-main-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .profile-main-header .header-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .profile-main-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .profile-main-header .header-content h3 {
        font-size: 22px;
    }

    .profile-main-header .header-content p {
        font-size: 14px;
    }
}

.tab-pane-content {
    padding: 0;
}

/* Profile Section Card (New Style) */
.profile-section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    border: 2px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-section-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.1);
}

.profile-section-card .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 2px solid #e9d5ff;
}

.profile-section-card .section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.profile-section-card .section-title h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.profile-section-card .section-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.profile-section-card .section-content {
    padding: 28px;
}

/* Section Headers (Old Style - Keep for compatibility) */
.profile-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8D3FF2 0%, #7C3AED 50%, #8D3FF2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.profile-section:hover::before {
    opacity: 1;
}

.profile-section h5 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.02em;
    position: relative;
}

.profile-section h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 1px;
}

.profile-section h5 i {
    color: #8D3FF2;
    font-size: 24px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(141, 63, 242, 0.15);
}

/* Form Labels */
.form-label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    text-transform: none;
}

.form-label i {
    color: #8D3FF2;
    font-size: 17px;
    opacity: 0.9;
}

.form-label .text-danger {
    color: #ef4444;
    font-size: 16px;
    margin-left: 2px;
}

/* Required Badge */
.form-label .text-danger::after {
    content: 'Obbligatorio';
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Subsection Labels (for grouped fields) */
.profile-section .row > div > .form-label:first-child {
    position: relative;
    padding-left: 0;
}

.profile-section .row > div > .form-label:first-child::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-section .row > div:hover > .form-label:first-child::before {
    opacity: 1;
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #8D3FF2;
    box-shadow: 0 0 0 4px rgba(141, 63, 242, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Image Upload Previews */
.image-upload-wrapper {
    position: relative;
}

.image-preview-container {
    margin-top: 16px;
    position: relative;
    display: inline-block;
}

.image-preview-container img {
    border-radius: 12px;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.image-preview-container:hover img {
    border-color: #8D3FF2;
    transform: scale(1.02);
}

.avatar-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50% !important;
}

.banner-preview {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3/1;
    object-fit: cover;
}

.video-cover-preview {
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

/* Custom File Input */
.form-control[type="file"] {
    padding: 10px 16px;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    transform: translateY(-1px);
}

/* Checkbox Pills */
.camera-type-selector {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.camera-pill {
    position: relative;
}

.camera-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.camera-pill label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background: #ffffff;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.camera-pill input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-color: #8D3FF2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.camera-pill label:hover {
    border-color: #8D3FF2;
    transform: translateY(-2px);
}

.camera-pill label i {
    font-size: 16px;
}

/* Language Selector */
.language-row {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.language-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.language-row:hover::before {
    opacity: 1;
}

.language-row .form-label {
    color: #4b5563;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    font-weight: 700;
}

.language-row input[readonly] {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
    font-weight: 600;
}

.language-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    margin-top: 12px;
}

.language-hint i {
    color: #3b82f6;
    font-size: 16px;
}

.language-hint p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}

/* Social Media Inputs */
.social-input-wrapper {
    position: relative;
}

.social-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8D3FF2;
    font-size: 18px;
    z-index: 10;
}

.social-input-wrapper .form-control {
    padding-left: 48px;
}

.social-input-wrapper .form-control:focus ~ i {
    color: #7C3AED;
}

/* Video Portfolio */
.video-preview-container {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.video-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.video-preview-item:hover {
    border-color: #8D3FF2;
    transform: scale(1.02);
}

.video-preview-item video {
    display: block;
    max-width: 250px;
    border-radius: 8px;
}

/* Info Alerts */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-box i {
    color: #d97706;
    font-size: 20px;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

/* Error Messages */
.text-danger {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-section {
        padding: 24px 20px;
        margin-bottom: 16px;
    }

    .profile-section h5 {
        font-size: 18px;
    }

    .camera-type-selector {
        flex-direction: column;
    }

    .camera-pill label {
        width: 100%;
        justify-content: center;
    }

    .video-preview-item video {
        max-width: 100%;
    }
}

/* Responsive Section Card */
@media (max-width: 768px) {
    .profile-section-card .section-header {
        padding: 20px 24px;
    }

    .profile-section-card .section-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .profile-section-card .section-title h4 {
        font-size: 18px;
    }

    .profile-section-card .section-content {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .profile-section-card .section-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-section-card .section-content {
        padding: 20px;
    }
}

/* Loading State */
.form-control[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section,
.profile-section-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.profile-section:nth-child(1),
.profile-section-card:nth-child(2) { animation-delay: 0.05s; }
.profile-section:nth-child(2),
.profile-section-card:nth-child(3) { animation-delay: 0.1s; }
.profile-section:nth-child(3),
.profile-section-card:nth-child(4) { animation-delay: 0.15s; }
.profile-section:nth-child(4),
.profile-section-card:nth-child(5) { animation-delay: 0.2s; }
.profile-section:nth-child(5),
.profile-section-card:nth-child(6) { animation-delay: 0.25s; }
.profile-section:nth-child(6),
.profile-section-card:nth-child(7) { animation-delay: 0.3s; }
.profile-section:nth-child(7),
.profile-section-card:nth-child(8) { animation-delay: 0.35s; }
