/* dungeon-hire-public.css */
/* Phong cách cho giao diện công khai treo phó bản thuê */

/* Banner dịch vụ */
.service-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/dungeon-bg.png') center/cover no-repeat;
    opacity: 0.1;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color:yellow;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 18px;
    color:yellow;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.banner-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

.cta-button.secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Section header */
.section-header {
    text-align: center;
    margin: 50px 0 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* Table controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    min-width: 180px;
    font-size: 14px;
    color: #333;
}

.filter-btn {
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #45a049;
}

.stats-summary {
    font-size: 14px;
    color: #666;
}

.stats-summary strong {
    color: #e53935;
    font-size: 18px;
}

/* Services table */
.services-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.services-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.services-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #5a67d8;
}

.services-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.services-table tbody tr:hover {
    background: #f8f9fa;
}

.services-table td {
    padding: 15px;
    vertical-align: middle;
}

.loading-row {
    text-align: center;
    padding: 40px !important;
    color: #666;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.status-running {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-paused {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dungeon tags */
.dungeon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dungeon-tag {
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid #bbdefb;
}

/* Detail button */
.detail-btn {
    padding: 6px 12px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: #0b7dda;
}

/* Service info cards */
.service-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Pricing table */
.pricing-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pricing-table thead {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.pricing-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.pricing-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.pricing-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.difficulty-easy {
    background: #c8e6c9;
    color: #2e7d32;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

.difficulty-expert {
    background: #d1c4e9;
    color: #4527a0;
}

.price-tag {
    color: #e53935;
    font-weight: bold;
    font-size: 16px;
}

.discount-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Contact section */
.contact-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.contact-method h4 {
    color: #333;
    margin-bottom: 10px;
}

.contact-method p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-link {
    display: inline-block;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}

.contact-link:hover {
    background: #45a049;
    color: white;
}

/* Contact note */
.contact-note {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #2196f3;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1976d2;
}

.note-header i {
    font-size: 24px;
}

.note-header h4 {
    margin: 0;
    font-size: 18px;
}

.note-content ul {
    margin: 0;
    padding-left: 20px;
}

.note-content li {
    margin-bottom: 8px;
    color: #555;
}

.note-content li strong {
    color: #333;
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-item {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-item:hover:not(.active) {
    background: #f8f9fa;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .service-banner {
        padding: 25px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .banner-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .service-info {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .services-table th,
    .services-table td {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 22px;
    }
    
    .services-table {
        font-size: 12px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 60px;
    }
}

/* Thêm vào dungeon-hire-public.css */

/* Filter bảng giá */
.pricing-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: gray;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f0f0f0;
    border-color: #4CAF50;
}

.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Bảng giá mới */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pricing-table thead {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.pricing-table th {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.pricing-table tbody tr:hover {
    background: #f8f9fa;
}

.pricing-table tbody tr.even-row {
    background: #fafafa;
}

.pricing-table tbody tr.odd-row {
    background: white;
}

.pricing-table td {
    padding: 18px 16px;
    text-align: center;
    vertical-align: middle;
}

/* Thông tin tài khoản */
.account-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.account-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #bbdefb;
}

.most-popular {
    display: inline-block;
    padding: 3px 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Thông tin thời gian */
.duration-info {
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
}

.duration-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.duration-info small {
    font-size: 12px;
    color: #666;
}

.duration-trial {
    background: #e8f5e9;
    border: 2px solid #c8e6c9;
    color: #2e7d32;
}

.duration-short {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

.duration-medium {
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    color: #1976d2;
}

.duration-long {
    background: #f3e5f5;
    border: 2px solid #e1bee7;
    color: #7b1fa2;
}

/* Ô giá tiền */
.price-cell {
    font-size: 16px;
}

.price-amount {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Ô SCoin */
.scoin-cell {
    font-size: 16px;
}

.scoin-amount {
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Text per day */
.per-day {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

/* Thông tin bổ sung */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2196F3;
    font-size: 14px;
}

.info-box i {
    color: #2196F3;
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-label {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .pricing-table {
        display: block;
        overflow-x: auto;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .account-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .price-amount,
    .scoin-amount {
        font-size: 16px;
    }
    
    .pricing-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pricing-table th {
        font-size: 13px;
        padding: 10px 5px;
    }
    
    .pricing-table td {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .duration-info {
        padding: 8px;
    }
    
    .duration-info strong {
        font-size: 14px;
    }
}