/**
 * Cloud Slicer Frontend Styles
 */

/* Error and Success Messages */
.cloud-slicer-messages {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cloud-slicer-error-message,
.cloud-slicer-success-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cloud-slicer-error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.cloud-slicer-success-message {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.cloud-slicer-error-icon,
.cloud-slicer-success-icon {
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

.cloud-slicer-error-text,
.cloud-slicer-success-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cloud-slicer-error-close,
.cloud-slicer-success-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cloud-slicer-error-close:hover,
.cloud-slicer-success-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.cloud-slicer-quote-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Upload Section */
.cloud-slicer-upload-section {
    margin-bottom: 30px;
}

.cloud-slicer-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.cloud-slicer-upload-area:hover {
    border-color: #9b59b6;
    background: #f0f4f8;
}

.cloud-slicer-upload-area.dragover {
    border-color: #9b59b6;
    background: #e8d5f0;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #2d3748;
    margin: 10px 0;
}

.upload-text-secondary {
    font-size: 16px;
    color: #718096;
    margin: 10px 0;
}

.upload-link {
    color: #9b59b6;
    text-decoration: underline;
    cursor: pointer;
}

.upload-info {
    font-size: 14px;
    color: #a0aec0;
    margin: 5px 0;
}

/* Upload Progress */
.cloud-slicer-upload-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #4a5568;
    font-size: 14px;
}

/* File Info */
.cloud-slicer-file-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-info-card,
.dimensions-card {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.file-info-card h3,
.dimensions-card h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 15px;
}

.file-info-card p,
.dimensions-card p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.upload-complete,
.fits-printer {
    color: #48bb78;
    font-weight: 600;
    margin-top: 10px;
}

/* Settings Section */
.cloud-slicer-settings-section {
    background: transparent;
    border-radius: 0;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 30px;
    margin-top: 30px;
}

.cloud-slicer-settings-section h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 25px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.setting-item select,
.setting-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.setting-item select:focus,
.setting-item input[type="text"]:focus {
    outline: none;
    border-color: #9b59b6;
}

.setting-description {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

/* Buttons */
.cloud-slicer-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cloud-slicer-btn-primary {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.cloud-slicer-btn-primary:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.cloud-slicer-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.cloud-slicer-btn-secondary:hover {
    background: #cbd5e0;
}

.cloud-slicer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quote Result */
.cloud-slicer-quote-result {
    background: transparent;
    border-radius: 0;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 30px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-result-card h2 {
    margin-top: 0;
    color: #2d3748;
    font-size: 28px;
    margin-bottom: 30px;
}

.quote-total {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px 0;
    background: transparent;
    border-bottom: 2px solid #e2e8f0;
}

.quote-amount {
    font-size: 48px;
    font-weight: 700;
    color: #9b59b6;
}

.quote-currency {
    font-size: 24px;
    color: #718096;
    margin-left: 10px;
}

.quote-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quote-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
}

.quote-icon {
    font-size: 24px;
}

.quote-detail-content {
    flex: 1;
}

.quote-detail-content strong {
    display: block;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 14px;
}

.quote-detail-content span {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
}

.quote-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Order Form */
.order-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.order-form-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-form-content h2 {
    margin-top: 0;
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 25px;
}

.order-summary {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.order-summary h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 15px;
}

.order-summary p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9b59b6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Order Success */
.order-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.success-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.success-content h2 {
    color: #48bb78;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-content p {
    color: #4a5568;
    font-size: 16px;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cloud-slicer-quote-form {
        padding: 15px;
    }
    
    .cloud-slicer-upload-area {
        padding: 40px 15px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-details {
        grid-template-columns: 1fr;
    }
    
    .quote-amount {
        font-size: 36px;
    }
    
    .order-form-content {
        padding: 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cloud-slicer-btn {
        width: 100%;
    }
}

/* ========================================
   Pricing Page Styles
   ======================================== */

.cloud-slicer-pricing-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Container */
.cloud-slicer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.cloud-slicer-pricing-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
}

.cloud-slicer-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cloud-slicer-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cloud-slicer-hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cloud-slicer-hero-subtitle {
    font-size: 1.5em;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.cloud-slicer-pricing-gallery {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.cloud-slicer-section-title {
    font-size: 2.2em;
    font-weight: 600;
    text-align: left;
    margin: 0 0 30px 0;
    color: #1a202c;
    line-height: 1.3;
}

.cloud-slicer-section-description {
    text-align: left;
    font-size: 1.1em;
    color: #4a5568;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.cloud-slicer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cloud-slicer-gallery-item {
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.cloud-slicer-gallery-item:hover {
    opacity: 0.8;
}

.cloud-slicer-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cloud-slicer-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cloud-slicer-gallery-item:hover .cloud-slicer-gallery-image {
    transform: scale(1.05);
}

/* Quote Section */
.cloud-slicer-pricing-quote {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.cloud-slicer-email-fallback {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95em;
    color: #718096;
    line-height: 1.6;
}

.cloud-slicer-email-fallback a {
    color: #3182ce;
    text-decoration: none;
}

.cloud-slicer-email-fallback a:hover {
    text-decoration: underline;
}

/* Features Section */
.cloud-slicer-pricing-features {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.cloud-slicer-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.cloud-slicer-features-list li {
    font-size: 1.1em;
    color: #2d3748;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.8;
}

.cloud-slicer-features-list li:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cloud-slicer-pricing-cta {
    padding: 80px 0;
    background: #ffffff;
    text-align: left;
    color: #1a202c;
    border-top: 1px solid #e2e8f0;
}

.cloud-slicer-cta-title {
    font-size: 2.2em;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a202c;
    line-height: 1.3;
}

.cloud-slicer-cta-text {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    color: #4a5568;
    line-height: 1.6;
}

.cloud-slicer-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #3182ce;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cloud-slicer-cta-button:hover {
    background: #2c5aa0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cloud-slicer-hero-title {
        font-size: 2.5em;
    }
    
    .cloud-slicer-hero-subtitle {
        font-size: 1.2em;
    }
    
    .cloud-slicer-section-title {
        font-size: 2em;
    }
    
    .cloud-slicer-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cloud-slicer-features-grid {
        grid-template-columns: 1fr;
    }
    
    .cloud-slicer-cta-title {
        font-size: 2em;
    }
    
    .cloud-slicer-cta-text {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .cloud-slicer-pricing-hero {
        min-height: 400px;
        padding: 60px 20px;
    }
    
    .cloud-slicer-hero-title {
        font-size: 2em;
    }
    
    .cloud-slicer-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cloud-slicer-pricing-gallery,
    .cloud-slicer-pricing-quote,
    .cloud-slicer-pricing-features,
    .cloud-slicer-pricing-cta {
        padding: 60px 0;
    }
}

