/* Heart Emojis Generator Styles */

/* Icon styles for labels */
.control-group label::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}

.control-group:nth-child(1) label::before {
    content: '❤';
}

.control-group:nth-child(2) label::before {
    content: '#';
}

.control-group:nth-child(3) label::before {
    content: '⚙';
}

/* Hover effect for control groups */
.control-group:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure consistent spacing and alignment */
.control-group > * {
    width: 100%;
}

/* Style for select dropdowns to ensure proper alignment */
select.heart-style-select,
select.separator-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Input number specific styling */
input[type="number"].heart-count-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"].heart-count-input::-webkit-inner-spin-button,
input[type="number"].heart-count-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.emoji-generator-container {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
}

.emoji-generator-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.emoji-generator-container .hero-description {
    font-size: 1.125rem;
    text-align: center;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.generator-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.generator-controls {
    margin-bottom: 2rem;
}

.control-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .control-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    min-height: 140px;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFD700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    height: 24px;
    line-height: 24px;
}

.heart-style-select,
.separator-select {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.3s;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    backdrop-filter: blur(10px);
    height: 48px;
    display: flex;
    align-items: center;
}

.heart-style-select option,
.separator-select option {
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    background: #1a1a2e;
    color: white;
}

.heart-style-select:hover,
.separator-select:hover,
.heart-style-select:focus,
.separator-select:focus {
    border-color: #FFD700;
    outline: none;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.heart-count-input {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    height: 48px;
    box-sizing: border-box;
}

.heart-count-input:focus {
    border-color: #FFD700;
    outline: none;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-row .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-success {
    background: linear-gradient(135deg, #DC143C 0%, #FF69B4 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(117, 117, 117, 0.8), rgba(97, 97, 97, 0.6));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(97, 97, 97, 0.9), rgba(66, 66, 66, 0.7));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.copied {
    background: #2196F3 !important;
}

.generator-output {
    margin: 2rem 0;
    min-height: 150px;
}

.output-display {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    min-height: 140px;
    font-size: 1.75rem;
    line-height: 2;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.output-display:empty::after {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.output-display.has-content {
    border-style: solid;
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(220, 20, 60, 0.05));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

.output-stats {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-item {
    display: inline-block;
    margin: 0 0.5rem;
    font-weight: 600;
}

.quick-presets {
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    padding-top: 2rem;
    margin-top: 2.5rem;
}

.quick-presets h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #FFD700;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preset-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.preset-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.preset-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(220, 20, 60, 0.15));
    color: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .emoji-generator-container h1 {
        font-size: 2rem;
    }
    
    .control-row {
        grid-template-columns: 1fr;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .button-row .btn {
        width: 100%;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .generator-card {
        padding: 1.5rem;
    }
    
    .output-display {
        font-size: 1.25rem;
        padding: 1rem;
    }
}