/* Main Container Styles */
.png-webp-converter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.png-webp-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.png-webp-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.png-webp-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.png-webp-hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.png-webp-hero-shapes .shape-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    right: -100px;
}

.png-webp-hero-shapes .shape-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -50px;
    right: 100px;
}

.png-webp-hero-shapes .shape-3 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: 50%;
    left: 50px;
}

/* Upload Area */
.png-webp-tool-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.png-webp-upload-area {
    border: 3px dashed #a777e3;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background-color: #f9f6ff;
}

.png-webp-upload-area:hover {
    border-color: #6e8efb;
    background-color: #f0e9ff;
}

.png-webp-upload-area.highlight {
    border-color: #6e8efb;
    background-color: #e8e1ff;
}

.upload-icon svg {
    width: 60px;
    height: 60px;
    fill: #a777e3;
    margin-bottom: 20px;
}

.png-webp-upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #555;
}

.png-webp-upload-area p {
    margin: 10px 0;
    color: #777;
}

.png-webp-upload-btn {
    display: inline-block;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    margin: 15px 0;
}

.png-webp-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.png-webp-file-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Settings Section */
.png-webp-settings {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.png-webp-settings h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.2rem;
}

.setting-group {
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.setting-group input[type="range"] {
    width: 100%;
    max-width: 300px;
    margin-right: 10px;
    vertical-align: middle;
}

.setting-group #qualityValue {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-weight: bold;
    color: #6e8efb;
}

.setting-group input[type="checkbox"] {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Results Section */
.png-webp-results {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
}

.png-webp-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.2rem;
}

.png-webp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.png-webp-gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.png-webp-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.png-webp-gallery-item-info {
    padding: 15px;
}

.png-webp-gallery-item-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.png-webp-gallery-item-info p strong {
    color: #555;
}

.png-webp-download-btn {
    display: inline-block;
    background: #6e8efb;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.png-webp-download-btn:hover {
    background: #5a7df4;
    transform: translateY(-2px);
}

.png-webp-download-all {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.png-webp-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

/* Loading Indicator */
.png-webp-loading {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6e8efb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.png-webp-loading p {
    color: #666;
    font-size: 1.1rem;
}

/* Info Boxes */
.png-webp-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.png-webp-info-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.png-webp-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.png-webp-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #6e8efb, #a777e3);
}

.info-box-icon svg {
    width: 40px;
    height: 40px;
    fill: #6e8efb;
    margin-bottom: 20px;
}

.png-webp-info-box h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.png-webp-info-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Content Section */
.png-webp-content-section {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.png-webp-content-decorator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.png-webp-content-decorator .decorator-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.05);
    top: -50px;
    right: -50px;
}

.png-webp-content-decorator .decorator-line {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(110, 142, 251, 0.3), transparent);
    transform: rotate(45deg);
    top: 30%;
    left: -30px;
}

.png-webp-content-section h2 {
    font-size: 1.8rem;
    color: #444;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.png-webp-content-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.png-webp-feature-highlight {
    background: #f9f6ff;
    border-left: 4px solid #a777e3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    z-index: 1;
}

.png-webp-feature-highlight h3 {
    font-size: 1.3rem;
    margin-top: 0;
    color: #555;
}

.png-webp-feature-highlight ul {
    padding-left: 20px;
}

.png-webp-feature-highlight li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.png-webp-related-tool {
    background: #eef4ff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.png-webp-related-tool h3 {
    font-size: 1.2rem;
    margin-top: 0;
    color: #555;
}

.png-webp-related-tool p {
    margin-bottom: 0;
}

.png-webp-related-tool a {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
}

.png-webp-related-tool a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.png-webp-faq-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.png-webp-faq-section h2 {
    font-size: 1.8rem;
    color: #444;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.png-webp-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.png-webp-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.png-webp-faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: #f5f7fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.png-webp-faq-question:hover {
    background: #eef2ff;
}

.png-webp-faq-question .faq-icon {
    font-size: 1.3rem;
    color: #6e8efb;
}

.png-webp-faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.png-webp-faq-answer p {
    margin: 0;
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

.png-webp-faq-item.active .png-webp-faq-question {
    background: #eef2ff;
}

.png-webp-faq-item.active .png-webp-faq-question .faq-icon {
    transform: rotate(45deg);
}

.png-webp-faq-item.active .png-webp-faq-answer {
    max-height: 500px;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .png-webp-hero-content h1 {
        font-size: 2rem;
    }
    
    .png-webp-hero-content p {
        font-size: 1rem;
    }
    
    .png-webp-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .png-webp-content-section,
    .png-webp-faq-section {
        padding: 25px;
    }
    
    .png-webp-tool-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .png-webp-hero {
        padding: 30px 20px;
    }
    
    .png-webp-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .png-webp-upload-area {
        padding: 30px 15px;
    }
    
    .png-webp-gallery {
        grid-template-columns: 1fr;
    }
}