/* ========================================================= */
/* PDF Tools - Page-Specific Styles */
/* ========================================================= */

/* Main Container */
.pdf-main {
    padding-top: 20px;
}

/* Breadcrumbs */
.pdf-breadcrumbs {
    padding: 12px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pdf-breadcrumbs nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-breadcrumbs a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pdf-breadcrumbs a:hover {
    color: var(--accent);
}

.pdf-breadcrumbs span:last-child {
    color: var(--text-muted);
}

/* Hero Section */
.pdf-hero {
    padding: 30px 0 35px;
    text-align: center;
}

.pdf-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
    line-height: 1.2;
}

.pdf-intro {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* AEO Section */
.pdf-aeo-section {
    padding: 30px 0;
}

.pdf-aeo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pdf-aeo-card {
    background: var(--card);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
}

.pdf-aeo-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-main);
}

.pdf-aeo-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Tool Section */
.pdf-tool-section {
    padding: 35px 0 60px;
}

/* Tabs */
.pdf-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pdf-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    background: var(--card);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text-main);
}

.pdf-tab:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pdf-tab.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-color: var(--accent);
    color: var(--accent);
}

.pdf-tab svg {
    flex-shrink: 0;
}

/* Privacy Card */
.pdf-privacy-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    color: rgba(4, 19, 23, 0.85);
}

.pdf-privacy-card svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.pdf-privacy-card strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.pdf-privacy-detail {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Main Layout */
.pdf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Left Panel */
.pdf-panel-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Dropzone */
.pdf-dropzone {
    background: var(--card);
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pdf-dropzone:hover,
.pdf-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

.pdf-dropzone svg {
    color: var(--accent);
    margin-bottom: 16px;
}

.pdf-dropzone-text {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-main);
}

.pdf-dropzone-or {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 12px 0;
}

.pdf-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pdf-btn-upload:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.pdf-dropzone-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 12px 0 0;
}

/* File List */
.pdf-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.pdf-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.pdf-file-item:hover {
    box-shadow: var(--shadow-small);
}

.pdf-file-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pdf-file-drag-handle:active {
    cursor: grabbing;
}

.pdf-file-icon {
    flex-shrink: 0;
    color: #ef4444;
}

.pdf-file-info {
    flex: 1;
    min-width: 0;
}

.pdf-file-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-meta {
    font-size: 0.80rem;
    color: var(--text-muted);
}

.pdf-file-actions-mobile {
    display: none;
    gap: 8px;
}

.pdf-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    color: var(--text-main);
}

.pdf-btn-icon:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.pdf-btn-icon.delete:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* File Actions */
.pdf-file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-btn-secondary {
    padding: 8px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: var(--card);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text-main);
}

.pdf-btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

/* Right Panel */
.pdf-panel-right {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Settings */
.pdf-settings {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
}

.pdf-settings h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-main);
}

.pdf-input-group {
    margin-bottom: 16px;
}

.pdf-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pdf-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.98);
}

.pdf-input:focus,
.pdf-input-small:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.pdf-input-small {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    text-align: center;
}

.pdf-settings-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Radio Groups */
.pdf-radio-group {
    margin-bottom: 14px;
}

.pdf-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pdf-radio-label input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.pdf-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-left: 24px;
}

/* Slider */
.pdf-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.2);
    outline: none;
    cursor: pointer;
}

.pdf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.pdf-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.pdf-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Checkbox */
.pdf-checkbox-group {
    margin: 12px 0;
}

.pdf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-main);
}

.pdf-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Compress Warning */
.pdf-compress-warning {
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    font-size: 0.84rem;
    color: rgba(4, 19, 23, 0.85);
    line-height: 1.5;
    margin-top: 12px;
}

.pdf-compress-warning strong {
    color: var(--text-main);
}

/* Progress */
.pdf-progress {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
}

.pdf-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #16a34a);
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

.pdf-progress-text {
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    margin: 0;
}

.pdf-btn-cancel {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    margin-top: 12px;
}

.pdf-btn-cancel:hover {
    background: #dc2626;
}

/* Output Summary */
.pdf-output {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
}

.pdf-output h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text-main);
}

.pdf-output-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
}

.pdf-output-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.pdf-output-stat-label {
    color: var(--text-muted);
}

.pdf-output-stat-value {
    font-weight: 600;
    color: var(--text-main);
}

.pdf-output-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pdf-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.pdf-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.pdf-btn-whatsapp:hover {
    background: #128C7E;
}

/* Action Button (Main) */
.pdf-btn-action {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pdf-btn-action:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.pdf-btn-action:disabled {
    background: rgba(148, 163, 184, 0.3);
    cursor: not-allowed;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.7);
}

/* SEO Content Section */
.pdf-content-section {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.5);
}

.pdf-content {
    max-width: 800px;
    margin: 0 auto;
}

.pdf-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text-main);
}

.pdf-content h2:first-child {
    margin-top: 0;
}

.pdf-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-main);
}

.pdf-content p {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.pdf-content ul,
.pdf-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
    line-height: 1.7;
    color: var(--text-muted);
}

.pdf-content li {
    margin-bottom: 8px;
}

.pdf-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.pdf-content dl {
    margin: 0 0 16px;
}

.pdf-content dt {
    font-weight: 700;
    color: var(--text-main);
    margin-top: 12px;
}

.pdf-content dd {
    margin: 4px 0 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Section */
.pdf-faq-section {
    padding: 50px 0;
}

.pdf-faq-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 30px;
    color: var(--text-main);
}

.pdf-faq-grid {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.pdf-faq-item {
    background: var(--card);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pdf-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.pdf-faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-main);
}

.pdf-faq-item p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Developer Credits */
.pdf-credits {
    padding: 24px 0;
    background: rgba(15, 23, 42, 0.03);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pdf-credits p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-credits a {
    display: inline-flex;
    align-items: center;
    color: #0077B5;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.pdf-credits a:hover {
    transform: scale(1.1);
}

.pdf-credits svg {
    vertical-align: middle;
}

/* Toast Notifications */
.pdf-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-toast {
    background: var(--card);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideIn 0.3s ease-out;
}

.pdf-toast.success {
    border-left: 4px solid var(--accent);
}

.pdf-toast.error {
    border-left: 4px solid #ef4444;
}

.pdf-toast-icon {
    flex-shrink: 0;
}

.pdf-toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Mobile Styles */
@media (max-width: 960px) {
    .pdf-layout {
        grid-template-columns: 1fr;
    }

    .pdf-panel-right {
        position: static;
        top: auto;
    }

    .pdf-tabs {
        justify-content: center;
    }

    .pdf-tab {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 10px 12px;
    }

    .pdf-tab span {
        display: none;
    }

    .pdf-hero h1 {
        font-size: 1.6rem;
    }

    .pdf-aeo-grid {
        grid-template-columns: 1fr;
    }

    .pdf-toast-container {
        right: 10px;
        left: 10px;
    }

    .pdf-toast {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .pdf-hero {
        padding: 20px 0 25px;
    }

    .pdf-tool-section {
        padding: 25px 0 40px;
    }

    .pdf-dropzone {
        padding: 30px 20px;
    }

    .pdf-file-actions {
        flex-direction: column;
    }

    .pdf-btn-secondary {
        width: 100%;
    }

    .pdf-file-actions-mobile {
        display: flex;
    }

    .pdf-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-input-small {
        width: 100%;
    }

    .pdf-credits p {
        flex-direction: column;
        gap: 6px;
    }

    .pdf-file-item {
        flex-wrap: wrap;
    }

    .pdf-file-drag-handle {
        order: 1;
    }

    .pdf-file-icon {
        order: 2;
    }

    .pdf-file-info {
        order: 3;
        flex-basis: 100%;
    }

    .pdf-file-actions-mobile {
        order: 4;
        flex-basis: 100%;
        justify-content: flex-end;
    }
}

/* Loading State */
.pdf-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Drag & Drop States */
.pdf-file-item.dragging {
    opacity: 0.5;
}

.pdf-file-item.drag-over {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

/* Empty State */
.pdf-file-list-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}