/* ============================================
   Info Modal - Bottom Sheet Style
   ============================================ */

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.info-modal[hidden] {
    display: none;
}

.info-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Bottom sheet container */
.info-modal__sheet {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: infoSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.12);
}

@keyframes infoSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Drag handle */
.info-modal__handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    flex-shrink: 0;
}

.info-modal__handle span {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
}

/* Scrollable area */
.info-modal__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 28px;
    overscroll-behavior: contain;
}

/* Header */
.info-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 16px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.info-modal__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}

.info-modal__close-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary, #c8a97e);
    border: none;
    padding: 6px;
    border-radius: 120px;
    cursor: pointer;
    transition: opacity 0.2s;
    height: 27px;
}

.info-modal__close-btn:active {
    opacity: 0.8;
}

/* ---- Info Blocks ---- */

.info-block {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-block:last-child {
    border-bottom: none;
}

.info-block__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.info-block__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.info-block__text {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
}

.info-block__text--sm {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

/* Rich content authored via Quill (h2/h3, lists, blockquote, images,
   links). Spacing kept tight so a multi-paragraph TV listing or hotel
   info card reads compactly inside the modal. */
.info-block__text--rich p { margin: 0 0 .6em; }
.info-block__text--rich p:last-child { margin-bottom: 0; }
.info-block__text--rich h2,
.info-block__text--rich h3 {
    margin: 1em 0 .4em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}
.info-block__text--rich h2 { font-size: 1.05rem; }
.info-block__text--rich h3 { font-size: .95rem; }
.info-block__text--rich ul,
.info-block__text--rich ol {
    margin: .4em 0 .8em;
    padding-left: 1.4em;
}
.info-block__text--rich li { margin-bottom: .25em; }
.info-block__text--rich blockquote {
    margin: .6em 0;
    padding: .4em 0 .4em 1em;
    border-left: 3px solid var(--color-primary, #c8a97e);
    color: #555;
    font-style: italic;
}
.info-block__text--rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: .4em 0;
    display: block;
}
.info-block__text--rich a {
    color: var(--color-primary, #c8a97e);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.info-block__text--rich hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1em 0;
}

/* ============================================
   Takeaway info block — 3 cards in modal
   ETA / Kurye / Min Sepet. Bigger surfaces than
   the at-a-glance status chips on /paket page.
   ============================================ */
.info-block--takeaway { padding-bottom: 12px; }
.info-tk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}
@media (max-width: 480px) {
    .info-tk-grid { grid-template-columns: 1fr 1fr; }
    .info-tk-grid .info-tk-card:first-child { grid-column: span 2; }
}
.info-tk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--color-primary) 8%, transparent),
        color-mix(in srgb, var(--color-primary) 2%, transparent));
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
    border-radius: 14px;
    text-align: center;
}
.info-tk-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 18%, transparent);
    color: var(--color-primary);
}
.info-tk-card__label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.info-tk-card__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}
body:not(.theme-light) .info-tk-card__label { color: rgba(255, 255, 255, 0.6); }
body:not(.theme-light) .info-tk-card__value { color: #fff; }

/* Quill alignment + size utility classes. The vendored Quill CSS
   scopes these to `.ql-editor` (admin-side WYSIWYG); we re-declare
   them here so the same classes work on the customer surfaces. */
.info-block__text--rich .ql-align-center  { text-align: center; }
.info-block__text--rich .ql-align-right   { text-align: right; }
.info-block__text--rich .ql-align-justify { text-align: justify; }
.info-block__text--rich .ql-size-small    { font-size: .75em; }
.info-block__text--rich .ql-size-large    { font-size: 1.5em; }
.info-block__text--rich .ql-size-huge     { font-size: 2em; }

/* ---- Notice Block ---- */

.info-block--notice {
    text-align: center;
    padding: 20px 0;
}

.info-block--notice .info-block__text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
}

/* ---- Hours Block ---- */

.info-block--hours {
    padding: 16px 0;
}

.info-hours {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 0;
    border-bottom: 1px solid #f8f8f8;
}

.info-hours__row:last-child {
    border-bottom: none;
}

.info-hours__day {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.info-hours__time {
    font-size: 0.85rem;
    color: #666;
    font-variant-numeric: tabular-nums;
}

/* ---- Address Block ---- */

.info-block--address {
    padding: 18px 0;
}

.info-address {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-address__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f5f5f5;
    color: var(--color-primary, #c8a97e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-address__body {
    flex: 1;
    min-width: 0;
}

.info-address__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.info-address__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
}

.info-address__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.info-address__link:active {
    color: var(--color-primary);
}

.info-address__text {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}

.info-address__phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--color-primary, #c8a97e);
    font-weight: 500;
    text-decoration: none;
    margin-top: 4px;
}

/* PWA install entry — opt-in, only visible when installable */
.info-pwa-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary, #c8a97e), var(--color-primary-dark, #a88b5e));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font: inherit;
}
.info-pwa-entry:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.info-pwa-entry:active { transform: translateY(0); }
.info-pwa-entry[hidden] { display: none; }

.info-pwa-entry__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-pwa-entry__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.info-pwa-entry__title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.info-pwa-entry__sub   { font-size: 12px; opacity: 0.85; }
.info-pwa-entry__chev  { opacity: 0.7; flex-shrink: 0; }

/* Social media block — large gradient cards with handles */
.info-block--socials { padding: 0; }
.info-block--socials .info-block__label {
    margin: 4px 4px 12px;
}
.info-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.info-social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    min-width: 0;
}
.info-social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}
.info-social-card:active { transform: translateY(0); }
.info-social-card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.info-social-card__icon svg { width: 22px; height: 22px; }
.info-social-card__body {
    display: flex; flex-direction: column;
    min-width: 0; flex: 1;
    gap: 1px;
}
.info-social-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.info-social-card__handle {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* Dark theme */
body:not(.theme-light) .info-social-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body:not(.theme-light) .info-social-card__name { color: #f3f4f6; }
body:not(.theme-light) .info-social-card__handle { color: #9ca3af; }

/* Survey entry — single-row CTA */
.info-survey-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}
.info-survey-entry:hover { background: rgba(0, 0, 0, 0.05); transform: translateY(-1px); }
.info-survey-entry:active { transform: translateY(0); }
.info-survey-entry__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--color-primary, #c8a97e);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-survey-entry__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-survey-entry__title { font-size: 14px; font-weight: 600; color: inherit; line-height: 1.2; }
.info-survey-entry__sub { font-size: 12px; color: #6b7280; }
.info-survey-entry__chev { color: #9ca3af; flex-shrink: 0; }

body:not(.theme-light) .info-survey-entry { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body:not(.theme-light) .info-survey-entry:hover { background: rgba(255,255,255,0.07); }
body:not(.theme-light) .info-survey-entry__sub { color: #9ca3af; }
