/* components.css - Reusable Component Styles */

/* Ceremony Cards */
.ceremony-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.ceremony-card:hover,
.ceremony-card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.ceremony-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF5E1 100%);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
}

/* Upload Zones */
.upload-zone {
    border: 3px dashed #C9A961;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.05) 0%, rgba(201, 169, 97, 0.1) 100%);
    transition: all 0.3s ease;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.15) 100%);
}

.upload-zone.has-image {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1) 0%, rgba(0, 184, 148, 0.05) 100%);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.2) 0%, rgba(0, 184, 148, 0.1) 100%);
    transform: scale(1.02);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

/* Control Buttons */
.control-btn {
    background: white;
    border: 1px solid #E5E7EB;
    color: var(--secondary);
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.control-btn:hover,
.control-btn:active {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn.active {
    background: var(--secondary);
    color: white;
}

/* Input Fields */
input[type="text"] {
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

/* Sliders */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Color Picker */
.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover,
.color-option.active {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Sticker Options */
.sticker-option {
    font-size: 28px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-option:hover,
.sticker-option:active {
    background: rgba(201, 169, 97, 0.1);
    transform: scale(1.1);
}

/* Messages */
.error-message,
.success-message {
    padding: 12px 20px;
    border-radius: 8px;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
}

.success-message {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}