/* Greeting Card Page Styles */

.greeting-section {
    padding: 80px 0;
    min-height: 90vh;
}

.greeting-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Card Editor */
.card-editor {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.card-editor h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--light-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

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

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

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.color-preview {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* Emoji Grid */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.emoji-item {
    font-size: 2rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-bg);
}

.emoji-item:hover {
    transform: scale(1.2);
    background: var(--primary-color);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons .btn {
    flex: 1;
}

/* Card Preview */
.card-preview-wrapper {
    position: relative;
}

.card-preview-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: var(--transition);
}

/* Festival-specific backgrounds */
.bg-diwali {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd60a 100%);
}

.bg-holi {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
}

.bg-dussehra {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-janmashtami {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.bg-ganeshchaturthi {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 50%, #feca57 100%);
}

.bg-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    text-align: center;
    width: 100%;
}

.glow-text {
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.8;
    word-wrap: break-word;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4);
    }
    to {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.6),
            0 0 50px rgba(255, 255, 255, 0.4);
    }
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.card-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .greeting-layout {
        grid-template-columns: 1fr;
    }

    .card-editor {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .greeting-section {
        padding: 40px 0;
    }

    .card-editor,
    .card-preview-wrapper {
        padding: 1.5rem;
    }

    .emoji-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .card-preview {
        aspect-ratio: 1/1;
    }

    .card-content {
        padding: 2rem 1rem;
    }

    .glow-text {
        font-size: 16px;
    }
}

/* Loading Animation */
.generating {
    position: relative;
    pointer-events: none;
}

.generating::after {
    content: 'Generating...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    z-index: 1000;
}