/* Welcome Section Styles */

#welcome-group-container {
    padding: var(--spacing-xxl) var(--spacing-xl);
}

/* Welcome Circles */
.welcome-circles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.welcome-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background-color: #E8501E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 45px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(232, 80, 30, 0.4);
}

.circle-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.circle-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.circle-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsive Circles */
@media (max-width: 900px) {
    .welcome-circles-container {
        gap: 24px;
    }
    .welcome-circle {
        width: 300px;
        height: 300px;
        padding: 30px;
    }
    .circle-title {
        font-size: 1.25rem;
    }
    .circle-subtitle {
        font-size: 0.9rem;
    }
    .circle-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .welcome-circles-container {
        flex-direction: column;
        gap: 20px;
    }
    .welcome-circle {
        width: 280px;
        height: 280px;
        padding: 28px;
    }
}

/* Legacy Welcome Image Styles (kept for compatibility) */
.welcome-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

#welcome-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.admin-mode #welcome-image {
    cursor: pointer;
}

.admin-mode #welcome-image:hover {
    transform: scale(1.02);
}

.admin-mode .welcome-image-container:hover .image-edit-overlay {
    display: block !important;
}

.image-edit-overlay {
    pointer-events: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-mode .welcome-image-container:hover .image-edit-overlay {
    opacity: 1;
}

/* Video Container Styles */
#welcome-container {
    margin-top: 40px;
}

/* Video output box - REMOVED
.video-output-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: block !important;
}
*/

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#welcome-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10; /* Ensure overlay is above video */
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #333;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-play-overlay:hover .play-icon {
    transform: scale(1.1);
}

/* Video Edit Button */
.video-edit-button {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Video edit button - REMOVED
.admin-mode .video-output-box:hover .video-edit-button {
    opacity: 1;
}
*/

/* Video Edit Modal */
.video-edit-modal {
    backdrop-filter: blur(5px);
}

.video-edit-modal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.video-option-section {
    transition: all 0.3s ease;
}

.video-option-section.active {
    border-color: #FF4500 !important;
    background-color: #FFF5F0 !important;
}

.video-option-section.disabled {
    opacity: 0.5;
}

.video-option-section h4 {
    color: #333;
    font-weight: 600;
}

.video-option-section button {
    transition: all 0.3s ease;
    font-weight: 600;
}

.video-option-section button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#video-link-input {
    transition: border-color 0.3s ease;
}

#video-link-input:focus {
    outline: none;
    border-color: #4169E1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

#upload-status {
    line-height: 1.5;
}

/* Welcome Content */
.welcome-content {
    margin-top: 40px;
    text-align: center;
}

#description-of-welcome {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-mode #description-of-welcome {
    border: 2px dashed transparent;
    transition: border-color 0.3s ease;
}

.admin-mode #description-of-welcome:hover {
    border-color: #e0e0e0;
}

.admin-mode #description-of-welcome:focus {
    outline: none;
    border-color: #4169E1;
    background: #f8f9fa;
}

/* Upload Progress */
.upload-progress-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 12px;
    z-index: 10000;
    text-align: center;
}

.upload-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: #4169E1;
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    #welcome-group-container {
        padding: 20px 16px;
    }
    
    #welcome-image {
        transform: scale(1.2);
        margin: 20px 0;
    }
    
    .video-management-controls {
        padding: 16px;
    }
    
    .video-control-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .video-link-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #description-of-welcome {
        font-size: 16px;
        padding: 16px;
    }
    
    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* Welcome Edit Toggle Button - Matching Gallery Button Style */
#manage-welcome-toggle-button {
    position: absolute;
    top: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 25px;
    color: #ccc;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

#manage-welcome-toggle-button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #FF4500;
}

#manage-welcome-toggle-button.active {
    background: #FF4500;
    border-color: #FF4500;
    color: white;
}

#manage-welcome-toggle-button .toggle-switch {
    width: 40px;
    height: 20px;
    background: #444;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
}

#manage-welcome-toggle-button.active .toggle-switch {
    background: rgba(255, 255, 255, 0.3);
}

#manage-welcome-toggle-button .toggle-slider {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

#manage-welcome-toggle-button.active .toggle-slider {
    transform: translateX(20px);
}

/* Edit Mode Visual Feedback */
.welcome-image-container .image-edit-overlay {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#manage-welcome-toggle-button.active ~ #welcome-group-container .welcome-image-container .image-edit-overlay {
    pointer-events: auto;
}

#manage-welcome-toggle-button.active ~ #welcome-group-container .welcome-image-container:hover .image-edit-overlay {
    opacity: 1;
}