/* Image Converter Specific Styles */

.converter-page-wrapper {
    min-height: calc(100vh - var(--header-height, 60px));
    padding: 2rem 0;
}

.converter-tool-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.converter-tool-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.converter-tool-section .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.converter-tool-section .section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Section */
.converter-interface {
    width: 100%;
}

.converter-upload-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-main-soft);
    text-align: center;
}

.upload-area {
    width: 100%;
    height: 300px;
    border: 2px dashed var(--border-secondary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    user-select: none;
    background: var(--bg-main);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-main);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.upload-icon-container {
    margin-bottom: 1.5rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-main);
    margin: 0 auto;
}

.upload-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-headings);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-formats {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* File List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-main-soft);
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-surface);
}

.file-info {
    flex-grow: 1;
    text-align: left;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-headings);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.convert-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.format-select {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition-normal);
}

.format-select:hover {
    border-color: var(--accent-main);
}

.format-select:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.convert-btn {
    background: var(--accent-main);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.convert-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.convert-btn.converting {
    background: var(--accent-main);
    cursor: progress;
    position: relative;
}

.convert-btn.converting::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.convert-btn.success {
    background: var(--success-color);
    pointer-events: none;
}

.download-btn,
.delete-btn {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.download-btn {
    display: none;
}

.download-btn.show {
    display: flex;
}

.download-btn:hover {
    background: var(--accent-main);
    color: white;
    border-color: var(--accent-main);
}

.delete-btn:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

/* Loading Section */
.loading-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-main-soft);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 4px solid var(--border-secondary);
    border-top-color: var(--accent-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    background: var(--accent-main);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.loading-card h2 {
    color: var(--text-headings);
    margin-bottom: 1rem;
}

.loading-card p {
    color: var(--text-secondary);
}

/* Success Section */
.success-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-main-soft);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    font-weight: bold;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-card h2 {
    color: var(--text-headings);
    margin-bottom: 2rem;
}

.success-card .btn:first-of-type {
    margin-bottom: 1rem;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow-main-medium);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--error-color); }
.toast.warning { border-left: 4px solid var(--warning-color); }
.toast.info { border-left: 4px solid var(--accent-main); }

.toast i {
    font-size: 1.2rem;
}

.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--error-color); }
.toast.warning i { color: var(--warning-color); }
.toast.info i { color: var(--accent-main); }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* SEO Content Section */
.seo-content-section {
    padding: 3rem 1rem;
    background: var(--bg-surface-secondary);
    margin-top: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-main-soft);
}

.seo-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.seo-article {
    margin-bottom: 2rem;
}

.seo-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-headings);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.seo-article p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-card {
    background: var(--accent-light);
    border: 1px solid var(--accent-main-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-card h3 {
    font-size: 1.75rem;
    color: var(--accent-main);
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 1.125rem;
    color: var(--accent-main);
    margin-bottom: 1.5rem;
}

/* Mobile adjustments for SEO content */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .seo-title {
        font-size: 1.5rem;
    }

    .seo-article p {
        font-size: 0.9rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .cta-card h3 {
        font-size: 1.25rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}
/* FAQ Section Styles */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-headings);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile adjustments for FAQ */
@media (max-width: 768px) {
    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .converter-page-wrapper {
        padding: 1rem 0;
    }

    .converter-tool-section {
        padding: 0 0.75rem;
    }

    .converter-tool-section .section-header {
        margin-bottom: 1.5rem;
    }

    .converter-tool-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .converter-tool-section .section-description {
        font-size: 1rem;
    }

    .converter-upload-card {
        padding: 1.5rem 1rem;
    }

    .upload-area {
        height: 200px;
        margin-bottom: 1rem;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .upload-text {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .upload-subtext {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .upload-formats {
        font-size: 0.75rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1rem;
        gap: 0.75rem;
    }

    .file-thumbnail {
        width: 50px;
        height: 50px;
        align-self: center;
    }

    .file-info {
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    .file-name {
        max-width: 100%;
        font-size: 0.9rem;
        margin-bottom: 0.125rem;
    }

    .file-size {
        font-size: 0.75rem;
    }

    .file-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .convert-label {
        flex-basis: 100%;
        text-align: center;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .format-select {
        flex-grow: 1;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .convert-btn {
        flex-grow: 1;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }

    .download-btn,
    .delete-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .loading-card,
    .success-card {
        padding: 2rem 1.5rem;
    }

    .loading-card h2,
    .success-card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .loading-card p {
        font-size: 0.9rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .converter-page-wrapper {
        padding: 0.5rem 0;
    }

    .converter-tool-section {
        padding: 0 0.5rem;
    }

    .converter-tool-section .section-header {
        margin-bottom: 1rem;
    }

    .converter-tool-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .converter-tool-section .section-description {
        font-size: 0.9rem;
    }

    .converter-upload-card {
        padding: 1rem 0.75rem;
    }

    .upload-area {
        height: 180px;
        margin-bottom: 0.75rem;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .upload-text {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .upload-subtext {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .upload-formats {
        font-size: 0.7rem;
    }

    .file-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .file-thumbnail {
        width: 45px;
        height: 45px;
    }

    .file-name {
        font-size: 0.85rem;
    }

    .file-size {
        font-size: 0.7rem;
    }

    .convert-label {
        font-size: 0.75rem;
    }

    .format-select {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
        min-width: 90px;
    }

    .convert-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        min-width: 70px;
    }

    .download-btn,
    .delete-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .loading-card,
    .success-card {
        padding: 1.5rem 1rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .loading-card h2,
    .success-card h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .loading-card p {
        font-size: 0.85rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .toast {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}