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

body {
    font-family: 'Mont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    line-height: 1.6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23CCAD96" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #CCAD96;
    text-shadow: 0 2px 4px rgba(204, 173, 150, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    background: rgba(204, 173, 150, 0.1);
    border: 1px solid rgba(204, 173, 150, 0.3);
    color: #CCAD96;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover {
    background: rgba(204, 173, 150, 0.2);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-family: 'Mont', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 20px;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Mont', sans-serif;
}

.daily-limit {
    font-size: 0.9rem;
    color: #CCAD96;
    background: rgba(204, 173, 150, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid rgba(204, 173, 150, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(204, 173, 150, 0.2);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: rgba(204, 173, 150, 0.05);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(204, 173, 150, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(204, 173, 150, 0.4);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #CC4528;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-family: 'Mont', sans-serif;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    border: 1px solid rgba(204, 173, 150, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(204, 173, 150, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-family: 'Mont', sans-serif;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
}

/* Upload Section */
.upload-section {
    padding: 40px 0;
}

/* Email Section */
.email-section {
    padding: 40px 0;
    background: rgba(204, 173, 150, 0.05);
}

.email-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.email-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(204, 173, 150, 0.2);
    backdrop-filter: blur(10px);
}

.email-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.email-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
}

.email-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

#emailInput {
    padding: 15px 20px;
    border: 2px solid rgba(204, 173, 150, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#emailInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#emailInput:focus {
    outline: none;
    border-color: #CC4528;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(204, 69, 40, 0.3);
}

.email-btn {
    background: #CC4528;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 16px rgba(204, 69, 40, 0.3);
}

.email-btn:hover {
    background: #B03A22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 69, 40, 0.4);
}

.email-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed #CCAD96;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(204, 173, 150, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(204, 173, 150, 0.15);
}

.upload-area:hover {
    border-color: #CC4528;
    background: rgba(204, 173, 150, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(204, 173, 150, 0.25);
}

.upload-area.dragover {
    border-color: #CC4528;
    background: rgba(204, 173, 150, 0.2);
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(204, 173, 150, 0.3);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.upload-area p {
    color: #CCAD96;
    margin-bottom: 24px;
    font-weight: 500;
}

.upload-btn {
    background: #CC4528;
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(204, 173, 150, 0.3);
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 173, 150, 0.4);
    background: #E55A35;
}

/* Preview Container */
.preview-container {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #CCAD96;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #2d2d2d;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.upload-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: #CC4528;
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(204, 69, 40, 0.3);
    font-family: 'Mont', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 69, 40, 0.4);
    background: #E55A35;
}

.btn-secondary {
    background: transparent;
    color: #CCAD96;
    border: 2px solid #CCAD96;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(204, 173, 150, 0.2);
    font-family: 'Mont', sans-serif;
}

.btn-secondary:hover {
    background: #CCAD96;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 173, 150, 0.3);
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 80px 0;
}

.loading-content {
    max-width: 500px;
    margin: 0 auto;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(204, 173, 150, 0.2);
    border-top: 4px solid #CCAD96;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #CCAD96;
}

.loading-content p {
    color: #CCAD96;
    opacity: 0.8;
}

/* Results Section */
.results-section {
    padding: 40px 0;
}

.results-content {
    max-width: 800px;
    margin: 0 auto;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: #CCAD96;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(204, 173, 150, 0.2);
}

.result-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    border: 2px solid rgba(204, 173, 150, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(204, 173, 150, 0.15);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2D1B69;
    text-shadow: 0 2px 4px rgba(45, 27, 105, 0.1);
}

.result-card p {
    color: #2D1B69;
    line-height: 1.7;
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #CC4528;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(204, 173, 150, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.color-palette {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.color-name {
    font-size: 0.9rem;
    color: #CCAD96;
    text-align: center;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(204, 69, 40, 0.1) 0%, rgba(204, 173, 150, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(204, 173, 150, 0.2);
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #CCAD96;
}

.cta-section p {
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 16px 40px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-btn:hover {
    text-decoration: none;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #CCAD96;
}

.share-section p {
    color: #CCAD96;
    margin-bottom: 20px;
    opacity: 0.8;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-social-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-social-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.5);
}

.share-social-btn.instagram:hover {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.2), rgba(255, 218, 121, 0.2));
    border-color: rgba(225, 48, 108, 0.5);
}

.share-social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.5);
}

.share-social-btn.copy-link:hover {
    background: rgba(204, 173, 150, 0.2);
    border-color: rgba(204, 173, 150, 0.5);
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 80px 0;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #CC4528;
}

.error-content p {
    color: #CCAD96;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .result-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 30px 16px;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
