/* css/dashboard.css */
/* Ana gösterge paneli (tarot uygulaması) stilleri */

.theme-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.3s;
  padding: 1px 1px;
}

.history-btn {
  background: none;
  border: none;
  padding: 1px 1px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.35em;
  display: flex;
  align-items: center;
  gap: 0;
}
.history-icon {
  font-size: 1.15em;
}
.logout-btn {
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.35em;
    display: flex;
    align-items: center;
    gap: 0;
    transition: color 0.2s;
}
.logout-btn:hover {
    color: #ffefb2;
    padding: 8px 6px;
    font-weight: bold;
}

.daily-card-area {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center; /* Dikey ortala */
	align-items: center; /* Yatay ortala */
}

.daily-card-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Butonu ortala */
    gap: 15px; /* Buton ve burç arasına boşluk koyalım */
    flex-wrap: wrap; /* Mobil için önemli */
}

.daily-card-result {
  min-height: 60px;
  text-align: left;
  width: 100%;
}
.daily-card-btn {
    background: #f7c843;
    color: #2e1a47;
    font-weight: bold;
    font-size: 0.8em;
    border-radius: 5px;
    border: none;
    padding: 8px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 10px #f7c84325;
    flex-shrink: 0;
    margin-bottom: 0;
}
/* Kartın sonucunun gösterildiği ana alan */
.daily-card-result .result-content {
    display: flex;
    align-items: flex-start; /* Elemanları yukarıdan hizala */
    gap: 15px; /* Resim ve metin arasına boşluk koy */
}

/* Kart resmi için */
.daily-card-result .daily-card-cardimg {
    flex-shrink: 0; /* Resmin küçülmesini engelle */
    width: 80px; /* Sabit genişlik verelim */
    height: auto;
}

/* Kart yorumunu içeren metin alanı */
.daily-card-result .text-content {
    display: flex;
    flex-direction: column; /* Metinleri alt alta sırala */
    flex-grow: 1; /* Mevcut tüm alanı kaplamasını sağla */
    min-width: 0; /* flexbox'ın doğru çalışması için */
}

.daily-card-result .text-content span {
    display: block; /* Her span kendi satırında olsun */
    line-height: 1.5;
}

/* Açık tema için küçük bir düzeltme */
body.light .daily-card-area {
    border-color: var(--light-glass-border-color);
}

.daily-card-btn:disabled {
  background: #ffe6a6;
  color: #aaa;
  cursor: not-allowed;
}

.daily-card-cardimg {
  width: 75px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 8px;
  border: 2px solid #f7c84399;
  background: #fff;
  box-shadow: 0 1px 8px #f7c84333;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size:0.9em;
}
.form-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pick-mode {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.pick-btn {
  flex: 1;
  background: #d8c5ff;
  color: #522e1b;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  opacity: 0.9;
}
.pick-btn.active, .pick-btn:focus {
  background: #f7c843;
  color: #222;
  opacity: 1;
}
.pick-btn:disabled {
  background: #f7ecd2;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
}

.pick-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.random-cards-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}
.pick-card {
  width: 80px;
  height: 125px;
  background: url('../img/tarot/back/backn.png') center/cover no-repeat;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  outline: none;
  box-shadow: 0 4px 16px #0002, 0 0 0 2px #fff3;
  border: 2px solid #f7c84366;
  flex-shrink: 0;
}
.pick-card.selected {
  background: linear-gradient(135deg, #fffbe8 0%, #ffe780 100%);
  transform: translateY(-7px) scale(1.02) rotate(-2deg);
  position: relative;
  z-index: 1;
  color: #353535;
}
.pick-card.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 24px 8px #f7c84377;
  pointer-events: none;
  opacity: 0.7;
}
.pick-card.revealed {
  background: #fff;
  cursor: default;
  width: 150px;
  height: auto;
}
.pick-card .card-inner {
  display: none;
  width: 100%; height: 100%;
  justify-content: center; align-items: center;
}
.pick-card.revealed .card-inner {
  display: flex;
  flex-direction: column;
}
.pick-card.revealed img {
  width: 150px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px #0003;
  border: 2px solid #f7c84366;
}
.pick-card.revealed span {
  margin-top: 6px;
  font-size: 1rem;
  color: #522e1b;
  text-align: center;
}
@keyframes flipCard {
  0% { transform: rotateY(0deg);}
  100% { transform: rotateY(180deg);}
}
.result,
.result .falim p,
.result h3 {
  text-align: left !important;
}
	
.result .falim {
	margin-top: 10px;
	padding: 10px;
}
.cards {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 18px;
  margin-top: 30px;
  margin-bottom: 14px;
  width: 100%;
}
.cards .card,
.history-item .card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  min-width: 0;
}
.cards img, .history-item .card img {
  width: 250px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: #fff;
  box-shadow: 0 2px 12px #0003;
  border: 2px solid #f7c84366;
}
.result-share-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 7px 0;
  align-items: center;
  flex-wrap: wrap;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 7px;
  border: none;
  border-radius: 7px;
  font-size: 0.99em;
  font-weight: 600;
  background: #fffbe8;
  color: #a6780a;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 8px #f7c84315;
  outline: none;
  text-decoration: none;
  min-width: 0;
  line-height: 1;
}
.icon-btn:active,
.icon-btn:focus,
.icon-btn:hover {
  background: #ffe780;
  color: #8f5c02;
}
.icon-btn.copied,
.icon-btn.copy-btn.copied {
  background: #c6ffb1 !important;
  color: #257e00 !important;
}
.icon-btn.voice-btn.active {
  background: #f7c843;
  color: #2e1a47;
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
  font-size: 1.08rem;
  color: #ffe780;
  width: 100%;
  text-align: center;
  min-height: 340px;
}
.card-loader {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.loader-card {
    width: 90px;
    height: 140px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fffbe8 0%, #ffe780 100%);
  animation: cardBounce 1.1s infinite alternate;
  box-shadow: 0 4px 16px #f7c84388, 0 2px 16px #0002;
}
.loader-card:nth-child(2) {
  animation-delay: 0.35s;
}
.loader-card:nth-child(3) {
  animation-delay: 0.7s;
}
@keyframes cardBounce {
  0% { transform: translateY(0);}
  100% { transform: translateY(-15px) scale(1.04);}
}
.ad-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20, 11, 29, 0.96);
  justify-content: center;
  align-items: center;
}
.ad-modal.active {
  display: flex;
}
.loader-spinner {
  width: 42px;
  height: 42px;
  border: 5px solid #ffe780;
  border-top: 5px solid #f7c843;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg);}
}
.pick-area {
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: all 0.5s ease-in-out;
    gap: 10px;
	margin:30px 0 30px 0;
  flex-wrap: wrap;
}
.pick-area-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

.pulsating-card {
    width: 90px;
    height: 140px;
	background: linear-gradient(135deg, #fffbe8 0%, #ffe780 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(247, 200, 67, 0.4), 0 0 30px rgba(247, 200, 67, 0.2);
    animation: pulsateGlow 3s infinite alternate;
}

@keyframes pulsateGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(247, 200, 67, 0.4), 0 0 30px rgba(247, 200, 67, 0.2);
    }
    100% {
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(247, 200, 67, 0.7), 0 0 50px rgba(247, 200, 67, 0.4);
    }
}

#pickAreaInstructionText {
    color: var(--text-main);
    opacity: 0.8;
    max-width: 400px;
    font-size: 1em;
}

#cardDeckContainer {
    width: 100%;
	text-align: center;
}

/* Genel animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}
/* css/dashboard.css dosyasının sonuna eklenecek */

.user-zodiac-sign {
    font-size: 1.1em;
    font-weight: bold;
    color: #f7c843;
    background-color: rgba(247, 200, 67, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(247, 200, 67, 0.2);
}
/* css/dashboard.css dosyasının sonuna eklenecek */



.feature-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f7c843;
    font-size: 1em;
}

.feature-box p {
    margin: 0;
    font-size: 0.8em;
    line-height: 1.6;
    opacity: 0.9;
}

body.light .feature-box {
    background: var(--light-glass-input-bg);
    border-color: var(--light-glass-input-border);
}

body.light .feature-box h3 {
    color: #643dc0;
}

.header-zodiac-icon {
    font-size: 1.1em; /* İkon boyutu */
    color: #f7c843;   /* İkon rengi */
    margin-left: 5px; /* Kullanıcı adıyla arasına boşluk */
    line-height: 1;
    transition: transform 0.2s;
}

.header-zodiac-icon:hover {
    transform: scale(1.1); /* Üzerine gelince hafifçe büyüsün */
}
/* --- Dashboard Ana İçerik Grid Yapısı --- */
.main-content-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0 20px 0;
	margin-bottom: 20px;
    padding-bottom: 20px;
	border-bottom: 1.5px dashed #f7c84359;
}
.tarot-form-column {
    flex: 1;
}
.dashboard-widget-column {
	flex: 0 0 419px;
    display: flex;
    flex-direction: column;
    gap: 15px;
	flex: 1;
}

/* --- Öne Çıkan Açılım Kutusu --- */
.featured-spread-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-spread-box h4 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #f7c843;
    opacity: 0.8;
}
.featured-spread-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}
.featured-spread-box p {
    margin: 0 0 20px 0;
    font-size: 0.9em;
    line-height: 1.5;
    opacity: 0.8;
    flex-grow: 1;
}
.featured-spread-box .button {
    width: 100%;
}
body.light .featured-spread-box {
    background: var(--light-glass-input-bg);
    border-color: var(--light-glass-input-border);
}

.top-widget-grid {
    display: flex;
    gap: 20px;
    align-items: stretch; /* Sütunların aynı yükseklikte olmasını sağlar */
    margin-bottom: 20px;
	border-bottom: 1.5px dashed #f7c84359;
	padding-bottom: 20px;
}

.top-widget-grid .widget-container {
    flex: 1; /* Her iki widget'ın da eşit yer kaplamasını sağlar */
    min-width: 0; /* Flexbox'ın dar ekranlarda doğru çalışması için */
}

/* Yorumla Butonunu Büyütme */
.submit-btn {
    width: 100%;
    font-size: 1em;
    margin-top: 10px;
}

/* === MOBİL UYUMLULUK === */
@media (max-width: 900px) {

    .dashboard-widget-column {
        flex: 1; /* Genişliği otomatik ayarla */
    }
}
/* Mobil için Üst Widget Düzeni */
@media (max-width: 800px) {
    .top-widget-grid, .main-content-grid {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .top-widget-grid {
        flex-direction: column;
    }
    .result .cards {
        gap: 8px;
    }
    .result .cards .card img {
        width: 100px;
    }
}
@media (max-width: 600px) {
  body {
    padding: 0px 0px 10px 0px;
  }
  .container {
    padding: 10px;
    max-width: 100%;
    width: calc(100% - 20px);
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
  }
  h1 {
    font-size: 1.1rem;
  }
  .cards {
    gap: 6px;
  }
  .cards img,
  .history-item .card img {
    width: 150px;
  }
  .ad-content {
    padding: 18px 7px;
    font-size: 0.98rem;
  }
  input, button, select {
    font-size: 0.97rem;
    padding: 8px;
  }
  .pick-card {
    width: 50px;
    height: 70px;
  }
  .pick-card.revealed {
   width: 115px;
  }
  .pick-card.revealed img {
    width: 110px;
  }
  .loader-card {
    width: 44px; height: 65px;
  }
  .daily-card-cardimg {
    width: 80px;
  }
  .dashboard-widget-column {
        flex: 1;
  }
}
/* === GENEL WIDGET KUTUSU STİLİ (Ortak Stil) === */
.feature-box, #dailyCardArea {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border-color);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}
.feature-box {
	padding: 15px !important;
}
/* Günlük Kart Widget'ına Özel Stiller */
#dailyCardResult .result-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}
#dailyCardResult .daily-card-cardimg {
    flex-shrink: 0;
    width: 70px;
    height: auto;
    border-radius: 8px;
}

/* === FORM VE KART SEÇİM ALANI === */
#tarotForm, .form-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === SONUÇ EKRANI (Yorumdan Sonra) === */
.result .cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.result .cards .card img {
  width: 250px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.light .feature-box, body.light #dailyCardArea {
    background: var(--light-glass-input-bg);
    border-color: var(--light-glass-input-border);
}
.ad-container {
    display: block;
    width: 100%;
    height: 100%;
}
.ad-container img {
    width: 100%;
    object-fit: contain; 
}
/* css/dashboard.css dosyasının sonuna ekleyin */

.card-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.card-result-item .card-info {
    text-align: center;
}

.card-name {
    font-weight: bold;
    font-size: 1em;
    display: block;
    margin-bottom: 5px;
}

.card-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.card-keywords span {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f7c843;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.8em;
    opacity: 0.7;
}
/* === YENİ: Premium Deneme Bildirim Çubuğu Stili === */
.notification-bar {
    background-color: #f7c843;
    color: #2e1a47;
    padding: 12px 15px;
    border-radius: 0px 0px 8px 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9em;
    animation: fadeInDown 0.5s ease-out;
}

.notification-bar a {
    color: #643dc0;
    text-decoration: underline;
    font-weight: bold;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.password-toggle-btn svg {
    display: block;
}

/* Daily Card Widget Container Animation */
#dailyCardWidgetContainer {
    opacity: 0; /* Başlangıçta görünmez */
    animation: fadeIn 0.5s ease-out 0.3s forwards; /* 0.3s gecikme, forwards ile son state'i koru */
}

/* FadeIn Keyframe Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}