/* Hero Image Positioning CSS */

/* Hero container base styles */
.profile-hero {
    position: relative;
    width: 100%;
    height: 300px; /* Default height for hero section */
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero image positioning */
.profile-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: object-position 0.3s ease;
}

/* Position variants */
.profile-hero img[data-position="top"],
.profile-hero img.hero-position-top {
    object-position: center top;
}

.profile-hero img[data-position="center"],
.profile-hero img.hero-position-center {
    object-position: center center;
}

.profile-hero img[data-position="bottom"],
.profile-hero img.hero-position-bottom {
    object-position: center bottom;
}


/* Profile content positioning over hero */
.profile-content-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-hero {
        height: 200px;
    }
    
    .profile-content-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .profile-hero {
        height: 150px;
    }
    
    .profile-content-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* Hero image preview in forms */
.hero-preview-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-preview-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Position selector styling */
.form-check-label.position-selector {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
}

.form-check-label.position-selector:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.form-check-input:checked + .form-check-label.position-selector {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Position preview indicators */
.position-preview {
    transition: all 0.2s ease;
}

.form-check-input:checked + .form-check-label .position-preview {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Hero upload area styling */
.hero-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.hero-upload-area.drag-over {
    border-color: #28a745;
    background-color: #f8fff9;
}

/* Loading states */
.hero-processing {
    opacity: 0.6;
    pointer-events: none;
}

.hero-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: hero-spin 1s linear infinite;
}

@keyframes hero-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero image quality indicators */
.hero-quality-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-quality-good { background-color: rgba(40, 167, 69, 0.9); }
.hero-quality-fair { background-color: rgba(255, 193, 7, 0.9); }
.hero-quality-poor { background-color: rgba(220, 53, 69, 0.9); }

/* Aspect ratio helpers */
.hero-aspect-4-1 {
    aspect-ratio: 4 / 1;
    height: auto;
}

.hero-aspect-16-9 {
    aspect-ratio: 16 / 9;
    height: auto;
}

.hero-aspect-21-9 {
    aspect-ratio: 21 / 9;
    height: auto;
}

/* Hero image optimization notices */
.hero-optimization-notice {
    background: linear-gradient(45deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.875rem;
    color: #1565c0;
}

.hero-optimization-notice strong {
    color: #0d47a1;
}

/* Hero image crop guides */
.hero-crop-guide {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.hero-crop-guide.rule-of-thirds-h1 {
    top: 33.33%;
    left: 0;
    right: 0;
    height: 1px;
}

.hero-crop-guide.rule-of-thirds-h2 {
    top: 66.66%;
    left: 0;
    right: 0;
    height: 1px;
}

.hero-crop-guide.rule-of-thirds-v1 {
    left: 33.33%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.hero-crop-guide.rule-of-thirds-v2 {
    left: 66.66%;
    top: 0;
    bottom: 0;
    width: 1px;
}
