/* Import base styles */
@import url('style.css');

/* Wallpaper Calculator Specific Styles */
.wallpaper-calculator-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.wallpaper-calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Tab Navigation */
.calculator-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 5px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 140px;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Panel Styling */
.panel {
    width: 100%;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.panel td {
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.panel td:first-child {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: #667eea;
    width: 35%;
    border-right: 1px solid #e1e8ed;
}

.panel tr:last-child td {
    border-bottom: none;
}

/* Input Styling */
.innormal {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.innormal:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.innormal option {
    background: white;
    color: #333;
    padding: 8px;
}

/* Button Styling */
.calculate-btn, .clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #7c8ceb, #8a5bb3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.clear-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.clear-btn:hover {
    background: linear-gradient(135deg, #ff7979, #f55a4e);
    transform: translateY(-2px);
}

/* Wallpaper Preview */
.wallpaper-preview {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.wallpaper-preview h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.preview-screen {
    width: 200px;
    height: 120px;
    background: #333;
    border-radius: 8px;
    border: 3px solid #555;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.preview-wallpaper {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.preview-text {
    opacity: 0.8;
    font-weight: 500;
}

.preview-info {
    flex: 1;
}

.preview-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.preview-info strong {
    color: #667eea;
    font-weight: 600;
}

/* Result Section */
.result-container {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-display p {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
}

.result-display strong {
    color: #667eea;
    font-weight: 600;
}

.result-display span {
    color: #333;
    font-weight: 500;
}

/* Resolution Guide */
.resolution-guide {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e1e8ed;
}

.resolution-guide h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resolution-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.res-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-size: 13px;
    transition: all 0.3s ease;
}

.res-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.res-item strong {
    color: #667eea;
    font-weight: 600;
}

/* Features Section Override */
.features-section {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e1e8ed;
}

.features-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.features-section ul {
    list-style: none;
    padding: 0;
}

.features-section li {
    color: #333;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    transition: all 0.3s ease;
}

.features-section li:before {
    content: "🖼️";
    position: absolute;
    left: 0;
    top: 8px;
}

.features-section li:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Tips Section */
.tips-section {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e1e8ed;
}

.tips-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-item {
    background: #fff3cd;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tip-item:hover {
    background: #ffeaa7;
    transform: translateX(5px);
}

.tip-item strong {
    color: #667eea;
    font-weight: 600;
}

/* Guide Section */
.guide-section {
    margin: 30px 0;
}

.guide-section h3 {
    color: #2b7ddb;
    margin-bottom: 15px;
    font-size: 20px;
}

.guide-section h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.guide-section p {
    color: #333;
    line-height: 1.6;
    margin: 15px 0;
    text-align: justify;
}

.guide-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.guide-section li {
    margin: 8px 0;
    line-height: 1.5;
}

.guide-section strong {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wallpaper-calculator-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .calculator-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .panel td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .panel td:first-child {
        width: 40%;
    }
    
    .calculate-btn, .clear-btn {
        padding: 10px 16px;
        margin: 5px;
        font-size: 12px;
    }
    
    .preview-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .preview-screen {
        width: 100%;
        max-width: 250px;
    }
    
    .resolution-guide, .features-section, .tips-section {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .calculator-tabs {
        padding: 3px;
    }
    
    .tab-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .tab-content h3 {
        font-size: 16px;
    }
    
    .panel td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .innormal {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .calculate-btn, .clear-btn {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
    }
    
    .preview-screen {
        height: 100px;
    }
}

/* Wallpaper Formats Section */
.wallpaper-formats {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e1e8ed;
}

.wallpaper-formats h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.format-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    font-size: 14px;
}

.format-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-2px);
}

.format-item strong {
    color: #667eea;
    font-weight: 600;
}

/* FAQ Section Enhancements */
.faq-section {
    margin: 30px 0;
}

.faq-section h4 {
    color: #2b7ddb;
    margin-top: 20px;
    margin-bottom: 10px;
}

.faq-section p {
    margin: 10px 0;
    text-align: justify;
    line-height: 1.6;
}

/* SEO Content */
.seo-content {
    margin: 30px 0;
}

.seo-content p {
    margin: 15px 0;
    text-align: justify;
    line-height: 1.6;
}

.seo-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.seo-content li {
    margin: 5px 0;
    line-height: 1.5;
}

/* Tips Section Enhancement */
.tips-section {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.tips-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tips-section li {
    margin: 8px 0;
    line-height: 1.5;
}

.tips-section strong {
    color: #667eea;
    font-weight: 600;
}
