/* Semboller sayfası: astroloji.css'in üzerine. */

.symbol-cover { position: relative; width: min(100%, 440px); height: auto; border-radius: 50%; box-shadow: 0 0 70px rgba(243, 194, 107, 0.3); animation: turn 140s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.symbol-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; object-fit: cover; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: var(--foreground); background: rgba(255, 255, 255, 0.04); font: inherit; font-size: 0.84rem; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--gold); background: rgba(243, 194, 107, 0.2); }

/* --- Günün sembolü --- */
.daily-symbol { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.daily-symbol img { box-shadow: 0 0 40px rgba(243, 194, 107, 0.25); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 60px rgba(243, 194, 107, 0.45); } }
.daily-symbol h3 { font-size: 2rem; }
.daily-symbol p { color: #e3dff0; margin: 6px 0; }
.daily-symbol .kw { color: var(--muted); font-size: 0.86rem; }

/* --- Sor --- */
.ask-form { display: flex; flex-direction: column; gap: 12px; }
.ask-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 700; }
.ask-form input, .ask-form textarea, .enc-tools input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 500;
}
.ask-form input:focus, .ask-form textarea:focus, .enc-tools input:focus { outline: none; border-color: var(--gold); }
.ask-form .btn { align-self: flex-start; }

.result { animation: rise 0.6s ease both; }
.result h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.result-sub { color: var(--gold); font-weight: 700; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0; }
.result h3 { margin-bottom: 6px; color: var(--gold); font-size: 1.05rem; }
.result p { color: #e3dff0; }
.message { padding: 14px 16px; border: 1px solid rgba(179, 136, 235, 0.35); border-radius: 16px; background: rgba(179, 136, 235, 0.07); }
#relatedBox { margin-top: 14px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 10px; }
.related button { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; color: var(--foreground); background: none; font: inherit; font-size: 0.82rem; cursor: pointer; text-align: center; }
.affirmation { margin-top: 14px; padding: 12px 16px; border: 1px solid rgba(243, 194, 107, 0.3); border-radius: 14px; color: #fff3d6; background: rgba(243, 194, 107, 0.06); font-family: var(--serif); font-size: 1.25rem; font-style: italic; text-align: center; }
.affirmation:empty { display: none; }
#sonuc .expert { margin-top: 16px; }

/* --- Ansiklopedi --- */
.enc-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.symbol-grid li { animation: rise 0.4s ease both; }
.symbol-grid button { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 8px 8px 12px; border: 1px solid var(--card-border); border-radius: 18px; color: var(--foreground); background: var(--card); font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.symbol-grid button:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(243, 194, 107, 0.15); }
.symbol-grid b { padding: 0 4px; font-family: var(--serif); font-size: 1.12rem; }
.symbol-grid small { padding: 0 4px; color: var(--muted); font-size: 0.74rem; }

.symbol-dialog { width: min(680px, calc(100vw - 24px)); }
.symbol-detail { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.symbol-detail h2 { font-size: 2rem; }
.symbol-detail p { margin: 8px 0; color: #e3dff0; }
.symbol-detail .kw { color: var(--muted); font-size: 0.86rem; }
.symbol-detail dl { display: grid; gap: 8px; margin: 10px 0 0; }
.symbol-detail dt { color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.symbol-detail dd { margin: 2px 0 0; color: #e3dff0; font-size: 0.92rem; }

/* --- Günlük --- */
.symbol-journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.symbol-journal li { position: relative; border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); }
.symbol-journal li.is-current { border-color: var(--gold); }
.symbol-journal .open { display: block; width: 100%; padding: 14px 40px 14px 16px; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.symbol-journal b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.symbol-journal small { color: var(--muted); font-size: 0.78rem; }
.symbol-journal p { margin-top: 4px; color: #d8d3e8; font-size: 0.84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.symbol-journal .del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.symbol-journal .del:hover { color: #fff; background: rgba(255, 90, 90, 0.4); }
.journal-empty { color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .symbol-journal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .daily-symbol, .symbol-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .daily-symbol img, .symbol-detail img { max-width: 240px; }
  .symbol-detail dl { text-align: left; }
  .result-grid, .symbol-journal { grid-template-columns: 1fr; }
  .symbol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
