/* ==========================================================================
   MekanRadar Contact Block
   public/css/mr-place-contact.css
   Light mode: beyaz taban + turuncu accent
   Dark mode: radar yeÅŸili korunur
   ========================================================================== */

.mrpc-section,
.mrpc-section * ,
.mrpc-section *::before,
.mrpc-section *::after {
    box-sizing: border-box;
}

.mrpc-section {
    position: relative;
    overflow: hidden;
}

.mrpc-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.mrpc-status {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(22, 225, 129, .18);
    background: rgba(22, 225, 129, .07);
    color: var(--mr-muted, rgba(221, 255, 239, .72));
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.mrpc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mr-green, #16e181);
    box-shadow: 0 0 0 5px rgba(22, 225, 129, .10);
}

.mrpc-primary-grid,
.mrpc-secondary-grid {
    display: grid;
    gap: 12px;
}

.mrpc-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mrpc-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.mrpc-action {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    border-radius: 22px;
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        color .16s ease;
}

.mrpc-action::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.045);
    pointer-events: none;
}

.mrpc-action > * {
    position: relative;
    z-index: 1;
}

.mrpc-action--primary {
    min-height: 82px;
    padding: 16px;
    border: 1px solid rgba(22, 225, 129, .30);
    background:
        radial-gradient(circle at 0% 0%, rgba(22, 225, 129, .10), transparent 34%),
        linear-gradient(135deg, rgba(22, 225, 129, .10), rgba(255,255,255,.040));
    box-shadow:
        0 12px 26px rgba(0,0,0,.13),
        inset 0 1px 0 rgba(255,255,255,.045);
}

.mrpc-action--secondary {
    min-height: 74px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.075);
    background:
        radial-gradient(circle at 0% 0%, rgba(22, 225, 129, .045), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.046), rgba(255,255,255,.024));
    box-shadow:
        0 9px 20px rgba(0,0,0,.11),
        inset 0 1px 0 rgba(255,255,255,.030);
}

.mrpc-action:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 225, 129, .42);
    box-shadow:
        0 14px 30px rgba(0,0,0,.16),
        0 0 0 4px rgba(22, 225, 129, .045);
}

.mrpc-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 225, 129, .20);
    background: rgba(22, 225, 129, .10);
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.mrpc-action--primary .mrpc-action-icon {
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.24), transparent 24%),
        linear-gradient(135deg, var(--mr-green, #16e181), #15cc73);
    color: #052214;
    border-color: rgba(22, 225, 129, .32);
}

.mrpc-action-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mrpc-action-title {
    display: block;
    color: var(--mr-title, #ffffff);
    font-size: 15px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -.015em;
}

.mrpc-action-meta {
    display: block;
    overflow: hidden;
    color: var(--mr-muted, rgba(221, 255, 239, .70));
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrpc-action-arrow {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mr-green, #16e181);
    background: rgba(22, 225, 129, .08);
    font-size: 16px;
    font-weight: 950;
}

/* ==========================================================================
   Light Mode / MR Feed uyumlu sade beyaz tema
   ========================================================================== */

html[data-mr-theme="light"] .mrpc-section {
    color: #172033;
}

html[data-mr-theme="light"] .place-show-premium .mrpc-section,
html[data-mr-theme="light"] .mrpd-page .mrpc-section {
    border-color: rgba(15, 23, 42, .085) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045) !important;
}

html[data-mr-theme="light"] .mrpc-head,
html[data-mr-theme="light"] .place-show-premium .mrpc-head,
html[data-mr-theme="light"] .mrpd-page .mrpc-head {
    color: #172033;
}

html[data-mr-theme="light"] .mrpc-status {
    color: #475569;
    background: rgba(255, 90, 31, .075);
    border-color: rgba(255, 90, 31, .16);
    box-shadow: none;
}

html[data-mr-theme="light"] .mrpc-status-dot {
    background: #ff5a1f;
    box-shadow: 0 0 0 5px rgba(255, 90, 31, .10);
}

html[data-mr-theme="light"] .mrpc-action::before {
    border-color: rgba(255, 255, 255, .80);
}

html[data-mr-theme="light"] .mrpc-action--primary,
html[data-mr-theme="light"] .mrpc-action--secondary {
    background: #ffffff;
    border-color: rgba(15, 23, 42, .085);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .040);
}

html[data-mr-theme="light"] .mrpc-action--primary {
    border-left: 3px solid rgba(255, 90, 31, .70);
}

html[data-mr-theme="light"] .mrpc-action:hover {
    border-color: rgba(255, 90, 31, .22);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
}

html[data-mr-theme="light"] .mrpc-action-icon {
    color: #ff5a1f;
    background: rgba(255, 90, 31, .085);
    border-color: rgba(255, 90, 31, .16);
    box-shadow: none;
}

html[data-mr-theme="light"] .mrpc-action--primary .mrpc-action-icon {
    color: #ffffff;
    background: #ff5a1f;
    border-color: rgba(255, 90, 31, .24);
    box-shadow: none;
}

html[data-mr-theme="light"] .mrpc-action-title {
    color: #111827;
}

html[data-mr-theme="light"] .mrpc-action-meta {
    color: #64748b;
}

html[data-mr-theme="light"] .mrpc-action-arrow {
    color: #ff5a1f;
    background: rgba(255, 90, 31, .075);
}

html[data-mr-theme="light"] .mrpc-action--primary:hover .mrpc-action-arrow,
html[data-mr-theme="light"] .mrpc-action--secondary:hover .mrpc-action-arrow {
    color: #ffffff;
    background: #ff5a1f;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .mrpc-primary-grid,
    .mrpc-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mrpc-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
    }

    .mrpc-status {
        width: fit-content;
    }

    .mrpc-action--primary {
        min-height: 76px;
        padding: 14px;
        border-radius: 20px;
    }

    .mrpc-action--secondary {
        min-height: 68px;
        padding: 13px;
        border-radius: 18px;
    }

    .mrpc-action {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .mrpc-action-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 16px;
    }

    .mrpc-action-title {
        font-size: 14px;
    }

    .mrpc-action-meta {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrpc-action,
    .mrpc-action:hover {
        transition: none !important;
        transform: none !important;
    }
}