/* ===================================
   PHOTO CARD CREATOR SECTION
   =================================== */

.photocard-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.photocard-title {
    text-align: center;
    font-size: 32px;
    color: #2D5F3F;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Li Shadhinata V2';
}

.photocard-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

.photocard-creator {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #2D5F3F;
    background: #e8f3ee;
}

.upload-area svg {
    color: #2D5F3F;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 20px;
}

.upload-btn {
    background: #2D5F3F;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Li Shadhinata V2';
}

.upload-btn:hover {
    background: #1a3d2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.uploaded-preview {
    text-align: center;
}

.uploaded-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.change-photo-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    font-family: 'Li Shadhinata V2';
}

.change-photo-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Preview Section */
.photocard-preview-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photocard-preview-section h3 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.position-controls {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.position-controls label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 15px;
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2D5F3F;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #1a3d2b;
    transform: scale(1.2);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2D5F3F;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider-group input[type="range"]::-moz-range-thumb:hover {
    background: #1a3d2b;
    transform: scale(1.2);
}

.reset-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Li Shadhinata V2';
}

.reset-btn:hover {
    background: #4b5563;
}

.photocard-canvas-wrapper {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#photocardCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photocard-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.download-photocard-btn,
.share-photocard-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Li Shadhinata V2';
}

.download-photocard-btn {
    background: #2D5F3F;
    color: white;
}

.download-photocard-btn:hover {
    background: #1a3d2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.share-photocard-btn {
    background: #3b82f6;
    color: white;
}

.share-photocard-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .photocard-creator {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .photocard-title {
        font-size: 26px;
    }
    
    .photocard-subtitle {
        font-size: 16px;
    }
    
    .upload-section,
    .photocard-preview-section {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .upload-area h3 {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .photocard-section {
        padding: 40px 15px;
    }
    
    .photocard-title {
        font-size: 22px;
    }
    
    .photocard-subtitle {
        font-size: 14px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-area svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-area h3 {
        font-size: 18px;
    }
    
    .upload-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .photocard-canvas-wrapper {
        padding: 10px;
    }
    
    #photocardCanvas {
        max-width: 100%;
        height: auto;
    }
    
    .photocard-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-photocard-btn,
    .share-photocard-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .position-controls {
        padding: 15px;
    }
    
    .slider-group label {
        font-size: 13px;
    }
    
    .photocard-nav-btn {
        font-size: 20px;
        padding: 15px 30px;
    }
    
    .back-btn {
        font-size: 18px;
        padding: 14px 28px;
    }
}
