/* Frontend Styles for Haikyuu Legends Codes Table */

.haikyuu-codes-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

/* Section Titles */
.haikyuu-codes-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    padding: 10px 0;
    border-bottom: 3px solid #667eea;
    color: #1f2937;
}

.haikyuu-codes-section-title.expired {
    border-bottom-color: #ef4444;
    color: #991b1b;
}

.haikyuu-expired-notice {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    margin: 10px 0 20px 0;
    color: #991b1b;
    font-size: 14px;
    border-radius: 4px;
}

/* Tables */
.haikyuu-codes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.haikyuu-codes-table thead {
    background: #473c68;
    color: #fff;
}

.haikyuu-expired-codes thead {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.haikyuu-codes-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.haikyuu-codes-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.haikyuu-codes-table tbody tr:hover {
    background-color: #f9fafb;
}

.haikyuu-expired-codes tbody tr:hover {
    background-color: #fef2f2;
}

.haikyuu-codes-table tbody tr:last-child {
    border-bottom: none;
}

.haikyuu-codes-table tbody td {
    padding: 15px 20px;
    font-size: 14px;
    color: #374151;
}

.haikyuu-codes-number {
    width: 8%;
    font-weight: 600;
}

.haikyuu-codes-code {
    width: 35%;
}

.haikyuu-code-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.haikyuu-codes-code strong {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    padding: 4px 8px;
    background: #473c68;
    border-radius: 4px;
    display: inline-block;
}

.haikyuu-codes-code strong.expired {
    color: #ef4444;
    text-decoration: line-through;
    opacity: 0.7;
}

.haikyuu-codes-description {
    width: 57%;
    line-height: 1.6;
}

.haikyuu-expired-codes .haikyuu-codes-description {
    opacity: 0.7;
}

/* Inline Copy Button */
.haikyuu-copy-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #473c68;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.haikyuu-copy-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.haikyuu-copy-btn-inline:active {
    transform: translateY(0);
}

.haikyuu-copy-btn-inline.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.haikyuu-copy-btn-inline svg {
    width: 14px;
    height: 14px;
}

/* Last Update */
.haikyuu-codes-last-update {
    margin-top: 15px;
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.haikyuu-codes-no-data {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .haikyuu-codes-section-title {
        font-size: 20px;
    }
    
    .haikyuu-codes-table {
        font-size: 13px;
    }
    
    .haikyuu-codes-table thead th,
    .haikyuu-codes-table tbody td {
        padding: 10px 12px;
    }
    
    .haikyuu-codes-number {
        width: 10%;
    }
    
    .haikyuu-codes-code {
        width: 35%;
    }
    
    .haikyuu-codes-description {
        width: 55%;
    }
    
    .haikyuu-copy-btn-inline {
        width: 24px;
        height: 24px;
    }
    
    .haikyuu-copy-btn-inline svg {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 480px) {
    .haikyuu-codes-section-title {
        font-size: 18px;
    }
    
    .haikyuu-codes-table {
        font-size: 12px;
    }
    
    .haikyuu-codes-table thead th,
    .haikyuu-codes-table tbody td {
        padding: 8px 10px;
    }
    
    .haikyuu-codes-code strong {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    .haikyuu-copy-btn-inline {
        width: 22px;
        height: 22px;
    }
    
    .haikyuu-copy-btn-inline svg {
        width: 11px;
        height: 11px;
    }
}