/* ========================================
   Image View Page - Footer Layout Fixes
   ======================================== */

/* 1. Hide unwanted login trigger button */
button[onclick="openLoginModal()"] {
    display: none !important;
}

/* 2. Add spacing between related images and footer */
.content-grid {
    margin-bottom: 80px;
}

/* 3. Footer container - ensure proper width and centering */
.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 4. Footer content layout - fix overlapping sections */
.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 50px !important;
    flex-wrap: wrap !important;
}

/* 5. Footer sections - proper sizing and spacing */
.footer-section {
    flex: 1 1 220px !important;
    min-width: 220px !important;
}

/* 6. First footer section (logo) - takes more space */
.footer-section:first-child {
    flex: 2 1 320px !important;
    min-width: 320px !important;
}

/* 7. Responsive adjustments for tablets */
@media (max-width: 768px) {
    .content-grid {
        margin-bottom: 50px;
    }

    .footer .container {
        padding: 0 20px;
    }

    .footer-content {
        gap: 30px !important;
    }
}

/* 8. Responsive adjustments for mobile */
@media (max-width: 480px) {
    .content-grid {
        margin-bottom: 40px;
    }

    .footer-section,
    .footer-section:first-child {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}

/* ========================================
   Login to Comment Section Styling
   ======================================== */

.login-to-comment-wrapper {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.login-to-comment-wrapper:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.btn-login-comment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-login-comment:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-login-comment i {
    font-size: 1rem;
}

/* ========================================
   Load More Button Styling
   ======================================== */

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #111111 0%, #2c2c2c 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #111111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border-color: #2563eb;
}

.btn-load-more:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-load-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

.loading-spinner {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
}

.loading-spinner i {
    margin-right: 8px;
    color: #2563eb;
}
