/* ===================================
   Word to PDF Converter - Stylesheet
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --success-color: #10B981;
    --error-color: #EF4444;
    --border-color: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --bg-gray: #F9FAFB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================
   Header Section
   =================================== */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Converter Tool Section
   =================================== */
.converter-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--bg-gray);
    cursor: pointer;
    position: relative;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: #EEF2FF;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.upload-area h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05em;
}

.file-input {
    display: none;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   File Info Display
   =================================== */
.file-info {
    display: none;
    background-color: var(--bg-gray);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 4px solid var(--primary-color);
}

.file-info.show {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.2em;
}

.file-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.file-detail:last-child {
    border-bottom: none;
}

.file-detail strong {
    color: var(--text-primary);
}

.file-detail span {
    color: var(--text-secondary);
}

/* ===================================
   Progress Section
   =================================== */
.progress-section {
    display: none;
    margin-top: 25px;
}

.progress-section.show {
    display: block;
    animation: slideIn 0.4s ease;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8B5CF6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Loading Spinner
   =================================== */
.spinner {
    display: none;
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.show {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Button Group
   =================================== */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===================================
   Alert Messages
   =================================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.4s ease;
}

.alert.show {
    display: block;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--error-color);
}

/* ===================================
   SEO Content Section
   =================================== */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.content-section h2 {
    color: var(--text-primary);
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

.content-section ul, .content-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

/* ===================================
   Features Grid
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 0;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.faq-section h2 {
    color: var(--text-primary);
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }

    .converter-section {
        padding: 25px 20px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .upload-icon {
        font-size: 3em;
    }

    .content-section {
        padding: 25px 20px;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    .content-section h3 {
        font-size: 1.3em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .faq-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 1.7em;
    }

    .upload-area h3 {
        font-size: 1.2em;
    }

    .file-detail {
        flex-direction: column;
        gap: 5px;
    }

    .content-section h2 {
        font-size: 1.4em;
    }

    .faq-section h2 {
        font-size: 1.6em;
    }
}