/* Google AdSense Safe - All styles prefixed with w2h- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.w2h-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.w2h-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.w2h-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.w2h-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Upload Section */
.w2h-upload-section {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.w2h-upload-area {
    border: 3px dashed #667eea;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.w2h-upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.w2h-drag-over {
    border-color: #764ba2;
    background: #e8eaff;
    transform: scale(1.02);
}

.w2h-upload-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.w2h-upload-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.w2h-upload-text {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.w2h-upload-hint {
    font-size: 0.875rem;
    color: #999;
}

.w2h-file-input {
    display: none;
}

/* File Preview Section */
.w2h-file-preview-section {
    padding: 2rem;
}

.w2h-file-preview-card {
    text-align: center;
}

.w2h-file-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.w2h-file-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.w2h-file-details {
    background: #f8f9ff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.w2h-file-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.w2h-file-info {
    font-size: 0.9375rem;
    color: #666;
}

/* Progress Section */
.w2h-progress-section {
    padding: 2rem;
}

.w2h-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.w2h-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.w2h-progress-text {
    text-align: center;
    font-size: 1.125rem;
    color: #333;
    font-weight: 500;
}

/* Result Section */
.w2h-result-section {
    padding: 2rem;
}

.w2h-result-card {
    text-align: center;
}

.w2h-result-icon {
    color: #4caf50;
    margin-bottom: 1rem;
}

.w2h-result-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.w2h-result-filename {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    word-break: break-all;
}

.w2h-button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.w2h-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.w2h-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.w2h-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.w2h-btn-secondary {
    background: #4caf50;
    color: #fff;
}

.w2h-btn-secondary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.w2h-btn-tertiary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.w2h-btn-tertiary:hover {
    background: #e0e0e0;
}

/* Features Section */
.w2h-features {
    margin-bottom: 3rem;
}

.w2h-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.w2h-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.w2h-feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.w2h-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.w2h-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.w2h-feature-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.w2h-feature-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* How To Section */
.w2h-how-to {
    margin-bottom: 3rem;
}

.w2h-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.w2h-step-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.w2h-step-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.w2h-step-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.w2h-step-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.w2h-faq {
    margin-bottom: 3rem;
}

.w2h-faq-list {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.w2h-faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.w2h-faq-item:last-child {
    border-bottom: none;
}

.w2h-faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.w2h-faq-answer {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Info Section */
.w2h-info {
    margin-bottom: 3rem;
}

.w2h-info-content {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.w2h-info-text {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.w2h-info-text:last-child {
    margin-bottom: 0;
}

/* Footer */
.w2h-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.w2h-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.w2h-footer-section {
    padding: 0 1rem;
}

.w2h-footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.w2h-footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.w2h-footer-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

.w2h-footer-links {
    list-style: none;
}

.w2h-footer-links li {
    margin-bottom: 0.5rem;
}

.w2h-footer-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9375rem;
}

.w2h-footer-link:hover {
    opacity: 1;
}

.w2h-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.w2h-footer-copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .w2h-title {
        font-size: 2rem;
    }

    .w2h-subtitle {
        font-size: 1rem;
    }

    .w2h-section-title {
        font-size: 1.75rem;
    }

    .w2h-upload-area {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .w2h-upload-title {
        font-size: 1.375rem;
    }

    .w2h-features-grid,
    .w2h-steps-grid {
        grid-template-columns: 1fr;
    }

    .w2h-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .w2h-container {
        padding: 1rem 0.5rem;
    }

    .w2h-title {
        font-size: 1.75rem;
    }

    .w2h-upload-section,
    .w2h-result-section {
        padding: 1.5rem;
    }

    .w2h-button-group {
        width: 100%;
    }

    .w2h-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Animations */
@keyframes w2h-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w2h-container > * {
    animation: w2h-fadeIn 0.6s ease-out;
}

/* Accessibility */
.w2h-btn:focus,
.w2h-upload-area:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .w2h-upload-section,
    .w2h-footer {
        display: none;
    }
}
