/* convrty - Simple but Fun Design System */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 75%, #f5576c 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #2d2d2d;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-title i {
    color: #ffffff;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Converter Card */
.converter-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.converter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #374151;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Upload Area */
.upload-area {
    border: 3px dashed #feca57;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff9e6 0%, #f0f9ff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.1);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffe0e0 0%, #e0f7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
    color: #feca57;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.file-input {
    display: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48cae4 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ffc107 50%, #2196f3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
    text-decoration: none;
}

/* Format Options Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.format-option {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.format-option:hover {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffe0e0 0%, #fff0e6 50%, #e0f7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
}

.format-option.selected {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffe0e0 0%, #fff0e6 50%, #e0f7ff 100%);
    color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.format-option i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

/* Info Cards */
.info-card {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-card h5 {
    color: #4f46e5;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 2rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Flash Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: #f0f9ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 2rem 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .converter-card {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .format-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .converter-card {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Google AdSense Styling - Matches Google's Standard Format */
.adsense-sidebar-wrapper,
.adsense-banner-wrapper,
.adsense-rectangle-wrapper,
.adsense-responsive-wrapper,
.adsense-multiplex-wrapper {
    margin: 1.5rem 0;
    padding: 0;
    text-align: center;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    overflow: hidden;
    position: relative;
}

.adsense-header {
    background: #f8f9fa;
    padding: 6px 12px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adsense-label {
    font-weight: 400;
}

.adsbygoogle {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

/* Sidebar Ad Specific */
.adsense-sidebar-wrapper {
    max-width: 300px;
    margin: 1.5rem auto;
}

.adsense-sidebar {
    width: 300px !important;
    height: 250px !important;
    display: block;
}

/* Banner Ad Specific */
.adsense-banner-wrapper {
    max-width: 728px;
    margin: 2rem auto;
}

.adsense-banner {
    width: 728px !important;
    height: 90px !important;
    display: block;
}

/* Large Rectangle Specific */
.adsense-rectangle-wrapper {
    max-width: 336px;
    margin: 1.5rem auto;
}

.adsense-large-rectangle {
    width: 336px !important;
    height: 280px !important;
    display: block;
}

/* Responsive Ad */
.adsense-responsive-wrapper {
    margin: 2rem 0;
    min-height: 280px;
}

.adsense-responsive {
    min-height: 280px;
}

/* Multiplex Ad */
.adsense-multiplex-wrapper {
    margin: 2rem 0;
    min-height: 300px;
}

.adsense-multiplex {
    min-height: 300px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .adsense-sidebar-wrapper,
    .adsense-banner-wrapper,
    .adsense-rectangle-wrapper {
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .adsense-banner {
        width: 320px !important;
        height: 50px !important;
    }
    
    .adsense-sidebar,
    .adsense-large-rectangle {
        width: 300px !important;
        height: 250px !important;
    }
    
    .adsense-banner-wrapper {
        max-width: 320px;
    }
}

@media (max-width: 320px) {
    .adsense-sidebar,
    .adsense-large-rectangle,
    .adsense-banner {
        width: 280px !important;
        height: 200px !important;
    }
}