/* استایل‌های اختصاصی صفحه مدیریت فوتر */

.section-wrapper {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-wrapper h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-wrapper h2 i {
    color: #667eea;
}

/* بخش خدمت‌ها */
.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.service-upload {
    position: relative;
    width: 100%;
    height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    overflow: hidden;
}

.service-upload:hover {
    border-color: #667eea;
}

.service-upload:hover .upload-icon-btn {
    opacity: 1;
}

.service-upload .upload-icon-btn {
    opacity: 0;
    transition: all 0.3s ease;
}

.upload-icon-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.upload-icon-btn:hover {
    background: #5568d3;
}

.badge-upload .upload-icon-btn {
    opacity: 0;
}

.badge-upload:hover .upload-icon-btn {
    opacity: 1;
}

.service-image-preview, .badge-image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-preview img, .badge-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-image-preview i, .badge-image-preview i {
    font-size: 48px;
    color: #adb5bd;
}

.service-title, .service-subtitle {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.service-title:focus, .service-subtitle:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* بخش درباره ما */
.about-title {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.about-title:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.about-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.about-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* بخش نمادها */
.badge-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.badge-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.badge-upload {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    overflow: hidden;
}

.badge-upload:hover {
    border-color: #667eea;
}

.badge-link {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.badge-link:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* بخش کپی رایت */
.copyright-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.copyright-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* دکمه ذخیره */
.save-section {
    margin-top: 30px;
    text-align: center;
}

.save-footer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.save-footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.save-footer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .service-items, .badge-items {
        grid-template-columns: 1fr;
    }
    
    .section-wrapper {
        padding: 20px;
    }
    
    .save-footer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loader برای بارگذاری اولیه */
.footer-loader {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.loader-spinner {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.footer-content {
    transition: opacity 0.3s ease;
}

.footer-content.hidden {
    display: none;
}

/* نوار پیشرفت آپلود */
.upload-progress-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.upload-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.upload-progress-text {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

/* کلاس‌های کمکی */
.hidden {
    display: none !important;
}

