/* AI Joint Photo Maker - Complete Styles */

/* Affiliate Banners */
.affiliate-banners {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.hostinger-banner {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    border-color: #7b1fa2 !important;
}

.hostinger-banner:hover {
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.3);
}

.amazon-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border-color: #f57c00 !important;
}

.amazon-banner:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.hostinger-banner .banner-icon {
    background: linear-gradient(135deg, #673DE6, #8B5CF6);
}

.amazon-banner .banner-icon {
    background: linear-gradient(135deg, #FF9900, #FF6600);
}

.banner-text {
    flex: 1;
}

.banner-text h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 3px;
    font-weight: 700;
}

.banner-text p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.banner-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: scale(1.05);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Step Sections */
.step-section {
    padding: 50px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.step-section.hidden {
    display: none;
}

.step-title {
    font-size: 2rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 10px;
}

.step-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Single Upload Box */
.single-upload-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.upload-area {
    width: 100%;
    min-height: 400px;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
    position: relative;
}

.upload-area:hover {
    border-color: #667eea;
    background: white;
}

.upload-area i {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.upload-area p {
    color: #718096;
    font-size: 1.1rem;
}

.upload-area.has-image {
    border-color: #48bb78;
    border-style: solid;
}

.upload-area.has-image i,
.upload-area.has-image h3,
.upload-area.has-image p {
    display: none;
}

.hidden-canvas {
    display: none;
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
}

.upload-area.has-image .hidden-canvas {
    display: block;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-remove {
    width: 100%;
    margin-top: 25px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-remove:hover:not(:disabled) {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
}

.btn-primary {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    width: 100%;
    background: #718096;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-generate {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    font-size: 1.3rem;
    padding: 20px 40px;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-download {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.3rem;
    padding: 20px 40px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    margin-bottom: 30px;
}

.preview-panel,
.controls-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.preview-panel h3,
.controls-panel h4 {
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-panel h3 {
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
}

/* Canvas Container */
.canvas-container {
    width: 100%;
    min-height: 500px;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
        linear-gradient(45deg, #f0f0f0 25%, white 25%, white 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
}

.canvas-container canvas {
    max-width: 100%;
    max-height: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.canvas-info {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

/* Control Groups */
.control-group {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.control-group h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
}

.control-group label:first-of-type {
    margin-top: 0;
}

.control-group label span {
    float: right;
    color: #667eea;
    font-weight: 700;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.color-box {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-box.active {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.color-box.custom {
    background: linear-gradient(135deg, 
        red, orange, yellow, green, 
        blue, indigo, violet);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-box.custom input[type="color"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-box.custom i {
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Sliders */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 10px 0 5px;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 15px !important;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.color-input {
    width: 100%;
    height: 55px;
    border: 3px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

/* Sheet Preview */
.sheet-preview-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.sheet-preview-container h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sheet-canvas-wrapper {
    width: 100%;
    background: #f7fafc;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.sheet-canvas-wrapper canvas {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Sheet Details */
.sheet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.detail-item i {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    display: block;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-item span {
    color: #718096;
    font-size: 0.95rem;
}

.detail-item.price-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.detail-item.price-item i,
.detail-item.price-item strong,
.detail-item.price-item span {
    color: white;
}

.detail-item.price-item strong {
    font-size: 1.1rem;
}

.detail-item.price-item span {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 968px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sheet-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-container {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
