/* ===================================================
   DPÜ TÖMER – İlham Takvimi  |  style.css
   =================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede6d6;
  --teal:       #1a5f7a;
  --teal-light: #2a7a9a;
  --teal-deep:  #0d3d50;
  --teal-btn:   #1a7f6e;
  --gold:       #c9a84c;
  --text-dark:  #1a2e3b;
  --text-mid:   #3d5a6b;
  --text-soft:  #6b8a9a;
  --white:      #ffffff;
  --nav-bg:     #1a3a4a;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #d4c9b8;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

/* ── APP WRAPPER ── */
.app-wrapper {
  width: 100%;
  height: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── PHONE SCREEN ── */
.phone-screen {
  width: 100%;
  height: 100vh;
  max-width: 420px;
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .phone-screen {
    max-width: 600px;
    border-radius: 32px;
  }
}

/* Desktop (PC/Mac) - full screen scaled app */
@media (min-width: 1025px) {
  html, body {
    padding: 20px;
  }
  
  .app-wrapper {
    max-width: 100%;
    width: 100%;
    height: 100%;
    padding: 20px;
  }
  
  .phone-screen {
    max-width: 900px;
    width: 100%;
    height: calc(100vh - 40px);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.2);
  }
}

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  background: var(--cream);
  border-bottom: 1px solid rgba(26,95,122,0.1);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header {
    padding: 20px 24px 16px;
  }
}

@media (min-width: 1025px) {
  .header {
    padding: 28px 32px 24px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.univ-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(26,95,122,0.2);
}

@media (min-width: 1025px) {
  .univ-logo {
    width: 64px;
    height: 64px;
  }
}

.header-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  letter-spacing: 0.5px;
}

@media (min-width: 1025px) {
  .header-brand {
    font-size: 18px;
  }
}

.tomer-dot {
  display: inline-block;
  position: relative;
}
.tomer-dot::after {
  content: '•';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--teal);
}

.header-sub {
  font-size: 7.5px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 1025px) {
  .header-sub {
    font-size: 8.5px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fullscreen-btn {
  background: rgba(26, 95, 122, 0.08);
  border: 1px solid rgba(26, 95, 122, 0.15);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--teal);
  transition: all 0.25s ease;
  padding: 0;
}

.fullscreen-btn:hover {
  background: rgba(26, 95, 122, 0.15);
  transform: scale(1.05);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

.fullscreen-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.ilham-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(26,95,122,0.06);
  border: 1.5px solid rgba(26,95,122,0.15);
  border-radius: 12px;
  padding: 6px 10px;
}

.ilham-leaf {
  font-size: 16px;
  line-height: 1;
}

.ilham-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.ilham-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

@media (min-width: 1025px) {
  .ilham-title {
    font-size: 15px;
  }
}

.ilham-subtitle {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal-deep);
}

/* ── DATE BAR ── */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: var(--cream);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .date-bar {
    padding: 16px 24px 14px;
  }
}

@media (min-width: 1025px) {
  .date-bar {
    padding: 20px 32px 18px;
  }
}

.date-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1025px) {
  .calendar-icon {
    width: 48px;
    height: 48px;
  }
}

.date-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.date-day {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .date-day {
    font-size: 32px;
  }
}

@media (min-width: 1025px) {
  .date-day {
    font-size: 40px;
  }
}

.date-dayname {
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.gunun-sozu-btn {
  background: var(--teal-btn);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(26,127,110,0.35);
}

@media (min-width: 1025px) {
  .gunun-sozu-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}

.gunun-sozu-btn:hover {
  background: #148f7a;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(26,127,110,0.45);
}

.gunun-sozu-btn:active {
  transform: translateY(0);
}

/* ── QUOTE SECTION ── */
.quote-section {
  padding: 8px 24px 4px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .quote-section {
    padding: 12px 32px 6px;
  }
}

.fav-action-btn {
  position: absolute;
  top: 10px;
  right: 24px;
  background: rgba(26, 95, 122, 0.06);
  border: 1px solid rgba(26, 95, 122, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--teal);
  transition: all 0.25s ease;
  z-index: 5;
}

.fav-action-btn:hover {
  background: rgba(26, 95, 122, 0.12);
  transform: scale(1.05);
}

.fav-action-btn.is-fav {
  background: rgba(212, 68, 68, 0.1);
  border-color: rgba(212, 68, 68, 0.25);
  color: #d44;
}

.fav-action-btn.is-fav svg {
  fill: #d44;
}

.fav-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: fill 0.25s ease;
}

.quote-mark-open {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: var(--teal);
  opacity: 0.55;
  line-height: 0.6;
  margin-bottom: 8px;
  display: block;
}

@media (min-width: 1025px) {
  .quote-mark-open {
    font-size: 96px;
    margin-bottom: 12px;
  }
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.55;
  text-align: left;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 100px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .quote-text {
    font-size: 24px;
    min-height: 120px;
  }
}

@media (min-width: 1025px) {
  .quote-text {
    font-size: 32px;
    line-height: 1.6;
    min-height: 150px;
  }
}

.quote-text.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.quote-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.quote-mark-close {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: var(--teal);
  opacity: 0.55;
  line-height: 0.3;
  display: block;
  text-align: right;
  margin-top: 4px;
}

@media (min-width: 1025px) {
  .quote-mark-close {
    font-size: 96px;
    margin-top: 8px;
  }
}

.quote-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 8px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(26,95,122,0.3), transparent);
}

.divider-ornament {
  font-size: 14px;
  color: var(--gold);
  opacity: 0.8;
}

/* ── ART SECTION ── */
.art-section {
  position: relative;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .art-section {
    height: 180px;
  }
}

@media (min-width: 1025px) {
  .art-section {
    height: 240px;
  }
}

.istanbul-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.85;
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--cream) 0%,
    transparent 15%,
    transparent 75%,
    var(--cream) 100%
  );
}

/* ── FOOTER CONTENT ── */
.footer-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 18px 10px;
  position: relative;
  z-index: 2;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-content {
    padding: 10px 24px 12px;
    gap: 16px;
  }
}

@media (min-width: 1025px) {
  .footer-content {
    padding: 12px 32px 14px;
    gap: 20px;
  }
}

.footer-left {
  flex: 1;
}

.footer-main {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 400;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-main {
    font-size: 13.5px;
  }
}

@media (min-width: 1025px) {
  .footer-main {
    font-size: 14.5px;
    line-height: 1.7;
  }
}

.footer-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--teal);
  margin-top: 4px;
}

@media (min-width: 1025px) {
  .footer-italic {
    font-size: 15px;
    margin-top: 6px;
  }
}

.heart-icon {
  color: var(--teal);
  font-size: 16px;
  margin-top: 8px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-label {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--teal-deep);
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .qr-label {
    font-size: 9px;
  }
}

@media (min-width: 1025px) {
  .qr-label {
    font-size: 10px;
  }
}

.qr-wrapper {
  background: white;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  border: 2px solid rgba(26,95,122,0.2);
}

@media (min-width: 1025px) {
  .qr-wrapper {
    padding: 6px;
    border-radius: 10px;
  }
}

#qrcode canvas,
#qrcode img {
  display: block;
  border-radius: 4px;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--nav-bg);
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .bottom-nav {
    padding: 12px 12px 18px;
  }
}

@media (min-width: 1025px) {
  .bottom-nav {
    padding: 14px 16px 20px;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s, transform 0.2s;
  padding: 2px 4px;
  flex: 1;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .nav-item {
    font-size: 10px;
    gap: 5px;
  }
}

@media (min-width: 1025px) {
  .nav-item {
    font-size: 11px;
    gap: 6px;
    padding: 4px 6px;
  }
}

.nav-item:hover {
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  color: #7ecfd4;
}

.nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .nav-icon {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 1025px) {
  .nav-icon {
    width: 24px;
    height: 24px;
  }
}

.nav-center {
  flex: 0 0 auto;
  color: white;
  position: relative;
  top: -14px;
}

.nav-center-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1a7f6e, #1a5f7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,95,122,0.55), 0 0 0 3px var(--nav-bg);
  transition: transform 0.2s;
}

@media (min-width: 1025px) {
  .nav-center-icon {
    width: 60px;
    height: 60px;
  }
}

.nav-center-icon:hover {
  transform: scale(1.08);
}

.nav-center-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

@media (min-width: 1025px) {
  .nav-center-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .modal-card {
    max-width: 420px;
    padding: 32px 28px;
  }
}

@media (min-width: 1025px) {
  .modal-card {
    max-width: 520px;
    padding: 36px 32px;
  }
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(26,95,122,0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--teal);
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(26,95,122,0.2);
}

.modal-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--teal-deep);
  margin-bottom: 14px;
  font-weight: 700;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .modal-card h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

@media (min-width: 1025px) {
  .modal-card h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

.modal-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .modal-card p {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (min-width: 1025px) {
  .modal-card p {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* ── FAVORITES ── */
.fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.fav-item {
  background: rgba(26,95,122,0.07);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .fav-item {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

@media (min-width: 1025px) {
  .fav-item {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
  }
}

.fav-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #d44;
  font-size: 14px;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.fav-del:hover { opacity: 1; }

/* ── SHARE TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--teal-deep);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9998;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── ANIMATIONS ── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phone-screen > * {
  animation: fadeSlideIn 0.5s ease both;
}

/* ── RESPONSIVE ── */
@media (max-width: 440px) {
  html, body {
    padding: 0;
  }
  .app-wrapper {
    max-width: 100%;
  }
  .phone-screen {
    border-radius: 0;
    height: 100dvh;
    box-shadow: none;
  }
}

/* Tablet-specific responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .app-wrapper {
    max-width: 600px;
  }
  .phone-screen {
    max-width: 600px;
  }
}

/* Large tablets and landscape */
@media (min-width: 1025px) {
  .app-wrapper {
    max-width: 680px;
  }
  .phone-screen {
    max-width: 680px;
    border-radius: 36px;
  }
  .quote-section {
    padding: 12px 28px 6px;
  }
  .footer-content {
    padding: 12px 28px 14px;
  }
}

