﻿/* Advanced 3D Cartoon Converter */

.a3d-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    color: white;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Header */
.a3d-header {
    text-align: center;
    margin-bottom: 50px;
}

.a3d-header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.a3d-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3));
}

.a3d-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.a3d-status {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
}

.a3d-status-success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.a3d-status-info {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196F3;
    color: #2196F3;
}

.a3d-status-warning {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid #FF9800;
    color: #FF9800;
}

/* Upload Section */
.a3d-upload-section {
    position: relative;
    margin: 40px 0;
}

#a3d_image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.a3d-upload-label {
    display: block;
    border: 4px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 70px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.a3d-upload-label:hover,
.a3d-upload-label.highlight {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.3);
}

.a3d-upload-icon {
    color: #4ecdc4;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(78, 205, 196, 0.5));
}

.a3d-upload-text h3 {
    font-size: 1.8rem;
    margin: 0 0 10px;
}

.a3d-upload-text p {
    margin: 5px 0;
    opacity: 0.8;
    font-size: 1.1rem;
}

.a3d-file-info {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-top: 15px;
}

/* Preview */
.a3d-preview {
    display: none;
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.a3d-preview h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.a3d-preview-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.a3d-preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Style Selection */
.a3d-styles {
    margin: 50px 0;
}

.a3d-styles h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #ff6b6b;
}

.a3d-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.a3d-style-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.a3d-style-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.a3d-style-card.selected {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    border-color: #4ecdc4;
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
}

.a3d-style-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(255, 255, 255, 0.3));
}

.a3d-style-card h4 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.a3d-style-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.a3d-style-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #4ecdc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
    color: white;
    font-weight: bold;
}

.a3d-style-card.selected .a3d-style-check {
    opacity: 1;
    transform: scale(1);
}

/* Options */
.a3d-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
}

.a3d-option {
    margin-bottom: 25px;
}

.a3d-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #4ecdc4;
}

.a3d-option input[type="range"] {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.a3d-option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

.a3d-value {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Submit Button */
.a3d-submit {
    text-align: center;
    margin: 50px 0;
}

.a3d-convert-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 22px 60px;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.a3d-convert-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(255, 107, 107, 0.6);
}

.a3d-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.a3d-btn-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 3px 10px rgba(255, 255, 255, 0.5));
}

.a3d-btn-text {
    font-weight: 700;
}

/* Info Section */
.a3d-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    backdrop-filter: blur(5px);
}

.a3d-info h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #4ecdc4;
}

.a3d-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.a3d-step {
    text-align: center;
    position: relative;
}

.a3d-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.a3d-step h4 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: white;
}

.a3d-step p {
    opacity: 0.8;
    margin: 0;
    font-size: 1rem;
}

/* Results Page */
.a3d-results {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.a3d-results-header {
    text-align: center;
    margin-bottom: 50px;
}

.a3d-results-header h2 {
    font-size: 2.5rem;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #4ecdc4;
}

.a3d-success-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 5px 15px rgba(78, 205, 196, 0.5));
}

.a3d-success-text {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.a3d-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.a3d-comparison-item {
    text-align: center;
}

.a3d-comparison-item h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #ff6b6b;
}

.a3d-image-box {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.a3d-image-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4) 1;
    border-radius: 20px;
    pointer-events: none;
}

.a3d-image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.a3d-image-box:hover img {
    transform: scale(1.02);
}

.a3d-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.a3d-download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.a3d-download-main {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.a3d-download-icon {
    font-size: 1.3rem;
}

.a3d-style-info {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.a3d-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.a3d-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.a3d-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.a3d-action-icon {
    font-size: 1.3rem;
}

/* Error Messages */
.a3d-error {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 30px 0;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .a3d-container {
        padding: 25px;
        margin: 25px;
    }
    
    .a3d-header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .a3d-styles-grid {
        grid-template-columns: 1fr;
    }
    
    .a3d-comparison {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .a3d-steps {
        grid-template-columns: 1fr;
    }
    
    .a3d-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .a3d-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}