/* static/css/region.css - Sido and Sigungu Regional Pages Specific Styles */

/* Header Style */
header {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area a {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-area span {
    color: #fbbf24;
}

/* Breadcrumb Style */
.breadcrumb-wrapper {
    margin-bottom: 25px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: #fbbf24;
    font-weight: 500;
}

/* Banner Style */
.visual-banner-wrapper {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
}

.visual-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Main Content Box */
.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -0.5px;
}

.intro-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.intro-text b {
    color: #fbbf24;
    font-weight: 600;
}

/* Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.4);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
    min-width: 750px;
}

th {
    background-color: rgba(31, 41, 55, 0.6);
    color: #fff;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.rank-1 { background-color: #f59e0b; color: #000; }
.rank-2 { background-color: #d1d5db; color: #000; }
.rank-3 { background-color: #b45309; color: #fff; }
.rank-other { background-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

.store-name {
    font-weight: 600;
    color: #fff;
}

.win-count-tag {
    color: #fbbf24;
    font-weight: 700;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.map-link:hover {
    background-color: #3b82f6;
    color: #fff;
}

/* Links Bar Style */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.grid-link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.grid-link-card:hover {
    background: rgba(251, 191, 36, 0.05);
    border-color: #fbbf24;
    color: #fbbf24;
    transform: translateY(-2px);
}

/* Footer Style */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .content-card {
        padding: 20px;
    }
    h1 {
        font-size: 22px;
    }
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    /* Responsive Table to Cards layout */
    .table-responsive {
        border: none;
        background: transparent;
        margin-bottom: 20px;
    }
    table {
        min-width: 0 !important;
    }
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100% !important;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }
    tr:hover td {
        background-color: transparent;
    }
    td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 10px 0;
        text-align: right;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 40px;
    }
    td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 5px;
    }
    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 13px;
        text-align: left;
        display: inline-block;
    }
    td.store-name {
        font-size: 16px;
        font-weight: 700;
    }
    td.store-name a {
        border-bottom-color: #fbbf24;
    }
    .rank-badge {
        margin-left: auto;
    }
    td.td-detail-btn::before {
        display: none !important;
    }
    td.td-detail-btn {
        justify-content: center !important;
        padding-top: 12px;
    }
    .map-link {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
}
