/* CSS for Boyut Magazalar Plugin */

/* Variables and Base */
:root {
    --b-navy: #004987; /* Overridden by inline style from admin settings */
    --b-border: #e2e8f0;
    --b-bg-soft: #fcfdfe;
    --b-text-dark: #1a202c;
    --b-text-gray: #718096;
    --b-hover: #e6f0fa;
}

.boyut-app-container {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.boyut-shop-header {
    border-left: 4px solid var(--b-navy);
    padding-left: 20px;
    margin-bottom: 25px;
}
.boyut-shop-header h2 {
    font-size: 26px;
    font-weight: 300;
    color: var(--b-navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Tabs */
.boyut-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--b-border);
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.boyut-tab-btn {
    background: transparent;
    border: 1px solid var(--b-border);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--b-text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}
.boyut-tab-btn:hover {
    color: var(--b-navy);
    background: var(--b-bg-soft);
}
.boyut-tab-btn.active {
    color: var(--b-navy);
    border-color: var(--b-navy);
    background: var(--b-hover);
}
.boyut-find-nearest {
    margin-left: auto;
    background: var(--b-navy);
    color: white;
    border-color: var(--b-navy);
}
.boyut-find-nearest:hover {
    color: white;
    opacity: 0.9;
    background: var(--b-navy);
}

/* Tab Content */
.boyut-tab-content {
    display: none;
    animation: fadeIn 0.4s;
}
.boyut-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter Box */
.boyut-shop-filter-box {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}
.boyut-shop-select, .boyut-shop-search {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--b-border);
    background-color: var(--b-bg-soft);
    font-size: 15px;
    color: var(--b-navy);
    font-weight: 700;
    outline: none;
    transition: all 0.3s ease;
}
.boyut-shop-select { width: 40%; cursor: pointer; }
.boyut-shop-search { width: 60%; color: var(--b-text-dark); font-weight: 400; }
.boyut-shop-select:hover, .boyut-shop-search:focus {
    border-color: var(--b-navy);
    box-shadow: 0 0 0 3px rgba(0, 73, 135, 0.1);
}

/* Cards */
.boyut-shop-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--b-border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boyut-shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.boyut-shop-card-head {
    padding: 18px 25px;
    border-bottom: 1px solid var(--b-border);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}
.boyut-shop-card-head-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.boyut-city-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--b-navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}
.boyut-country-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--b-navy);
    border: 1px solid var(--b-navy);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}
.boyut-shop-card-head-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.boyut-shop-card-head h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--b-text-dark);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.3;
}
.boyut-ilce-badge, .boyut-distance-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--b-navy);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 0.85;
}
.boyut-distance-badge {
    background: #48bb78; /* Green for distance */
}

/* Card Body */
.boyut-shop-card-body {
    padding: 16px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.boyut-info-line {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--b-text-dark);
    align-items: flex-start;
}
.boyut-info-line i {
    color: var(--b-navy);
    width: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Card Foot */
.boyut-shop-card-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--b-border);
    background: #ffffff;
    border-radius: 0 0 10px 10px;
}
.boyut-action-btn {
    padding: 15px 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--b-navy);
    text-decoration: none;
    border-right: 1px solid var(--b-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    background: transparent;
}
.boyut-action-btn:last-child { border-right: none; }
.boyut-action-btn:hover:not(.disabled) {
    background: var(--b-hover);
}
.boyut-action-btn.disabled {
    pointer-events: none;
    opacity: 0.35;
}

/* Responsive */
@media (max-width: 600px) {
    .boyut-shop-filter-box { flex-direction: column; }
    .boyut-shop-select, .boyut-shop-search { width: 100% !important; }
    
    .boyut-tabs { justify-content: space-between; }
    .boyut-tab-btn:not(.boyut-find-nearest) {
        flex: 1;
        padding: 10px 5px;
        font-size: 13px;
        text-align: center;
    }
    .boyut-find-nearest { margin-left: 0; width: 100%; }
}
