/* ===== AI LOVE LETTER GENERATOR ===== */

.all-header {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 30%, #db2777 70%, #f43f5e 100%) !important;
}

.all-layout { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; margin-bottom: 28px; }

/* Controls */
.all-controls { background: #fff; border: 2px solid #fce7f3; border-radius: 20px; padding: 20px; position: sticky; top: 80px; max-height: 92vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #fce7f3 #fff; }
.all-controls::-webkit-scrollbar { width: 4px; }
.all-controls::-webkit-scrollbar-thumb { background: #fbcfe8; border-radius: 3px; }
.all-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid #fdf2f8; }
.all-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.all-section-title { font-size: 12px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.all-section-title small { font-weight: 400; color: #9ca3af; font-size: 10px; }
.all-req { color: #ef4444; }

/* Occasion Grid */
.all-occasion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.all-occ-btn { background: #fff5f7; border: 1.5px solid #fce7f3; border-radius: 9px; padding: 8px 6px; font-size: 11px; font-weight: 700; color: #9d174d; cursor: pointer; transition: all .2s; text-align: center; }
.all-occ-btn:hover { border-color: #db2777; background: #fdf2f8; }
.all-occ-btn.active { background: linear-gradient(135deg, #9d174d, #db2777); border-color: #db2777; color: #fff; }

/* Input / Textarea */
.all-input, .all-textarea { width: 100%; border: 2px solid #fce7f3; border-radius: 10px; padding: 10px 13px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .2s; box-sizing: border-box; color: #1f2937; background: #fff; }
.all-textarea { resize: vertical; line-height: 1.6; }
.all-input:focus, .all-textarea:focus { border-color: #db2777; }

/* Tone Grid */
.all-tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.all-tone-btn { background: #fff5f7; border: 1.5px solid #fce7f3; border-radius: 9px; padding: 8px 5px; font-size: 11px; font-weight: 700; color: #9d174d; cursor: pointer; transition: all .2s; text-align: center; }
.all-tone-btn:hover { border-color: #db2777; }
.all-tone-btn.active { background: linear-gradient(135deg, #9d174d, #db2777); border-color: #db2777; color: #fff; }

/* Length */
.all-length-btns { display: flex; gap: 6px; }
.all-length-btn { flex: 1; background: #fff5f7; border: 1.5px solid #fce7f3; border-radius: 10px; padding: 9px 6px; font-size: 11px; font-weight: 700; color: #9d174d; cursor: pointer; transition: all .2s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.all-length-btn small { font-size: 10px; font-weight: 400; color: #f9a8d4; }
.all-length-btn:hover { border-color: #db2777; }
.all-length-btn.active { background: linear-gradient(135deg, #9d174d, #db2777); border-color: #db2777; color: #fff; }
.all-length-btn.active small { color: #fce7f3; }

/* Lang */
.all-lang-btns { display: flex; gap: 6px; }
.all-lang-btn { flex: 1; background: #fff5f7; border: 1.5px solid #fce7f3; border-radius: 9px; padding: 9px 5px; font-size: 12px; font-weight: 700; color: #9d174d; cursor: pointer; transition: all .2s; text-align: center; }
.all-lang-btn:hover { border-color: #db2777; }
.all-lang-btn.active { background: linear-gradient(135deg, #9d174d, #db2777); border-color: #db2777; color: #fff; }

/* Generate */
.all-generate-btn { width: 100%; background: linear-gradient(135deg, #be185d, #db2777, #f43f5e); color: #fff; border: none; border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 900; cursor: pointer; transition: all .3s; box-shadow: 0 4px 20px rgba(219,39,119,.4); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.all-generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(219,39,119,.5); }
.all-generate-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Output */
.all-output { display: flex; flex-direction: column; gap: 14px; min-height: 500px; }

/* Placeholder */
.all-placeholder { background: linear-gradient(135deg, #fff5f7, #fdf2f8); border: 3px dashed #fbcfe8; border-radius: 20px; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; justify-content: center; min-height: 400px; }
.all-ph-icon { font-size: 64px; animation: all-float 2s ease-in-out infinite alternate; }
@keyframes all-float { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
.all-placeholder h3 { font-size: 22px; font-weight: 800; color: #9d174d; margin: 0; }
.all-placeholder p  { font-size: 14px; color: #be185d; max-width: 380px; margin: 0; line-height: 1.6; }
.all-ph-occasions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.all-ph-occasions span { background: #fff; border: 2px solid #fce7f3; color: #9d174d; border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; }

/* Loading */
.all-loading { background: linear-gradient(135deg, #fff5f7, #fdf2f8); border: 2px solid #fbcfe8; border-radius: 20px; padding: 60px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; min-height: 300px; justify-content: center; }
.all-loading-icon { font-size: 52px; animation: all-pulse 0.8s ease-in-out infinite alternate; }
@keyframes all-pulse { from { transform: scale(0.9); } to { transform: scale(1.15); } }
.all-loading-title { font-size: 18px; font-weight: 800; color: #9d174d; }
.all-loading-sub { font-size: 13px; color: #be185d; margin: 0; }
.all-loading-dots { display: flex; gap: 8px; }
.all-loading-dots span { width: 10px; height: 10px; background: #db2777; border-radius: 50%; animation: all-dot 1s ease-in-out infinite; }
.all-loading-dots span:nth-child(2) { animation-delay: .2s; }
.all-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes all-dot { 0%,100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.2); opacity: 1; } }

/* Error */
.all-error { display: flex; align-items: center; gap: 10px; padding: 20px; background: #fef2f2; border: 2px solid #fecaca; border-radius: 14px; color: #dc2626; font-size: 14px; font-weight: 600; }

/* Results */
.all-results { display: flex; flex-direction: column; gap: 14px; }
.all-results-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.all-results-info h3 { font-size: 16px; font-weight: 800; color: #1f2937; margin: 0 0 3px; }
.all-word-count { font-size: 12px; color: #9ca3af; }
.all-results-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.all-copy-btn  { background: #9d174d; color: #fff; border: none; border-radius: 9px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.all-copy-btn:hover  { background: #831843; }
.all-share-btn { background: #25d366; color: #fff; border: none; border-radius: 9px; padding: 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.all-share-btn:hover { background: #1fa855; }
.all-print-btn { background: #6b7280; color: #fff; border: none; border-radius: 9px; padding: 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.all-print-btn:hover { background: #4b5563; }
.all-regen-btn { background: #fff; border: 2px solid #fce7f3; border-radius: 9px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #db2777; cursor: pointer; transition: all .2s; }
.all-regen-btn:hover { border-color: #db2777; background: #fff5f7; }

/* Letter Box */
.all-letter-box { background: #fff; border: 2px solid #fce7f3; border-radius: 16px; padding: 36px 40px; font-size: 15px; line-height: 2; color: #1f2937; font-family: 'Georgia', serif; white-space: pre-wrap; position: relative; box-shadow: 0 4px 24px rgba(219,39,119,.08); }
.all-letter-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(135deg, #be185d, #f43f5e); border-radius: 14px 14px 0 0; }
.all-letter-box::after { content: '💕'; position: absolute; top: 18px; right: 20px; font-size: 22px; opacity: .3; }

.all-share-note { background: #fff5f7; border: 2px solid #fce7f3; border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #9d174d; }

/* Print */
@media print {
    .all-controls, .all-results-header, .all-share-note, .tool-header, .breadcrumb, .related-tools-section, .seo-content, footer, header { display: none !important; }
    .all-letter-box { border: none; padding: 0; box-shadow: none; font-size: 12pt; }
    .all-letter-box::before, .all-letter-box::after { display: none; }
}

/* Responsive */
@media (max-width: 1000px) { .all-layout { grid-template-columns: 1fr; } .all-controls { position: static; max-height: none; } }
@media (max-width: 600px) {
    .all-occasion-grid { grid-template-columns: repeat(2, 1fr); }
    .all-tone-grid { grid-template-columns: repeat(3, 1fr); }
    .all-results-header { flex-direction: column; align-items: flex-start; }
    .all-letter-box { padding: 20px 16px; }
    .all-results-actions { gap: 6px; }
}
@media (max-width: 400px) {
    .all-length-btns { flex-direction: column; }
    .all-lang-btns   { flex-direction: column; }
}
