/**
 * Hotel IPTV WordPress Plugin Styles
 * 简洁风格 - 参照 hotel.php
 */

.hotel-iptv-container {
    font-family: "Microsoft YaHei", sans-serif;
    max-width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hotel-iptv-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

/* Filter Form */
.hotel-iptv-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hotel-iptv-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-iptv-filter label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.hotel-iptv-filter select,
.hotel-iptv-filter input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hotel-iptv-filter .btn-search {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.hotel-iptv-filter .btn-search:hover {
    background: #0056b3;
}

/* Table */
.hotel-iptv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.hotel-iptv-table th,
.hotel-iptv-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hotel-iptv-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-top: 1px solid #dee2e6;
}

.hotel-iptv-table tr:hover {
    background: #fdfdfd;
}

.hotel-iptv-table .no-data {
    text-align: center;
    padding: 30px;
    color: #999;
}

.hotel-iptv-table .ip-link {
    color: #007bff;
    text-decoration: none;
}

.hotel-iptv-table .ip-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.hotel-iptv-table .url-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #666;
}

/* Status */
.status-new {
    color: #28a745;
    font-weight: 500;
}

.status-alive {
    color: #17a2b8;
    font-weight: 500;
}

.status-fail {
    color: #dc3545;
    font-weight: 500;
}

/* Pagination */
.hotel-iptv-pagination {
    text-align: center;
    margin: 20px 0;
    display: flex !important;
    justify-content: center !important;
    gap: 5px;
}

.hotel-iptv-pagination a,
.hotel-iptv-pagination span {
    display: inline-block !important;
    width: auto !important;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.hotel-iptv-pagination a:hover {
    background: #f1f1f1;
}

.hotel-iptv-pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Breadcrumb */
.hotel-iptv-breadcrumb {
    font-size: 15px;
    color: #888;
    margin-bottom: 15px;
}

.hotel-iptv-breadcrumb a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.hotel-iptv-breadcrumb a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Action Bar */
.hotel-iptv-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hotel-iptv-action-bar .btn-back {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.hotel-iptv-action-bar .btn-back:hover {
    background-color: #e2e6ea;
}

.hotel-iptv-action-bar .btn-channel {
    background-color: #007bff;
    color: white;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    border: none;
}

.hotel-iptv-action-bar .btn-channel:hover {
    background-color: #0056b3;
}

.hotel-iptv-action-bar .query-ip {
    font-weight: 600;
    font-size: 15px;
    margin: 0 10px;
    color: #333;
}

/* Detail Card */
.hotel-iptv-detail-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.hotel-iptv-detail-card .card-header {
    background: #f8f9fa;
    color: #333;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.hotel-iptv-detail-card .card-content {
    padding: 20px;
}

.hotel-iptv-detail-card .detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}

.hotel-iptv-detail-card .detail-row:last-child {
    border-bottom: none;
}

.hotel-iptv-detail-card .label {
    width: 100px;
    color: #888;
}

.hotel-iptv-detail-card .value {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.hotel-iptv-detail-card .channel-count {
    color: #007bff;
    font-weight: bold;
}

/* Info Hero */
.hotel-iptv-info-hero {
    background: #f8f9fa;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.hotel-iptv-info-hero .hero-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
    padding: 10px;
}

.hotel-iptv-info-hero .hero-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.hotel-iptv-info-hero .hero-value {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

/* Download Section */
.hotel-iptv-download-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.hotel-iptv-download-section .download-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

.hotel-iptv-download-section .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hotel-iptv-download-section .btn-dl {
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    transition: opacity 0.2s;
}

.hotel-iptv-download-section .btn-dl:hover {
    opacity: 0.9;
}

.hotel-iptv-download-section .btn-dl-txt {
    background-color: #6c757d;
}

.hotel-iptv-download-section .btn-dl-m3u {
    background-color: #28a745;
}

.hotel-iptv-download-section .btn-api {
    padding: 6px 16px;
    border-radius: 20px;
    color: #555;
    font-size: 13px;
    border: 1px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.hotel-iptv-download-section .btn-api:hover {
    border-color: #007bff;
    color: #007bff;
}

.hotel-iptv-download-section .download-note {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
}

/* Channel Header */
.hotel-iptv-channel-header {
    background-color: #f8f9fa;
    color: #333;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    border: 1px solid #eee;
    border-bottom: none;
    font-size: 15px;
}

/* Buttons */
.btn-copy {
    padding: 4px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.btn-copy:hover {
    border-color: #bbb;
}

.btn-play {
    padding: 4px 10px;
    background-color: #fff;
    border: 1px solid #28a745;
    border-radius: 4px;
    color: #28a745;
    font-size: 12px;
    text-decoration: none;
}

.btn-play:hover {
    background-color: #28a745;
    color: white;
}

/* Footer */
.hotel-iptv-footer {
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Toast */
.hotel-iptv-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hotel-iptv-toast.show {
    opacity: 1;
}

/* Loading */
.hotel-iptv-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hotel-iptv-container {
        padding: 15px;
    }

    .hotel-iptv-filter {
        flex-direction: column;
    }

    .hotel-iptv-filter .filter-group {
        width: 100%;
    }

    .hotel-iptv-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hotel-iptv-info-hero {
        flex-direction: column;
        gap: 15px;
    }

    .hotel-iptv-detail-card .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .hotel-iptv-detail-card .label {
        width: 100%;
        font-size: 12px;
    }
}