/*
Time Table Component Styles - RODA
Modern responsive design for training schedule and pricing
*/

/* Main Time Table Section */
.time-table {
    background: linear-gradient(135deg, #f7fafc, #edf2f7, #e2e8f0);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.time-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(229, 62, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 85, 104, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(160, 174, 192, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.time-table .container {
    position: relative;
    z-index: 2;
}

/* Title Wrapper */
.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e53e3e;
    transition: all 0.3s ease;
}

.title-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.time-table-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.title-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-left: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Table Styling */
.table {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #2d3748, #4a5568);
}

.table thead th {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 20px 15px;
    border: none;
    text-align: center;
    position: relative;
}

.table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    transform: scale(1.01);
}

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

.table tbody td {
    padding: 18px 15px;
    color: #4a5568;
    font-weight: 500;
    text-align: center;
    border: none;
    vertical-align: middle;
}

.table tbody td:first-child {
    font-weight: 700;
    color: #2d3748;
    text-transform: capitalize;
}

/* Price Section */
.price-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    background: transparent !important;
    padding: 0 !important;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e53e3e, #c53030);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .time-table .col-lg-8,
    .time-table .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .time-table {
        padding: 40px 0;
    }
    
    .time-table .row {
        gap: 30px;
    }
    
    .time-table .col-12 {
        margin-bottom: 30px;
    }
    
    .title-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .time-table-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .title-wrapper img {
        margin-left: 0;
        width: 35px;
        height: 35px;
    }
    
    .table {
        margin-bottom: 30px;
    }
    
    .table thead th {
        padding: 15px 8px;
        font-size: 0.8rem;
    }
    
    .table tbody td {
        padding: 15px 8px;
        font-size: 0.9rem;
    }
    
    .price-wrapper {
        padding: 25px 20px;
        margin-top: 20px;
    }
    
    .price {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .time-table {
        padding: 30px 0;
    }
    
    .time-table .row {
        gap: 25px;
    }
    
    .time-table .col-12 {
        margin-bottom: 25px;
    }
    
    .title-wrapper {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .time-table-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .title-wrapper img {
        width: 30px;
        height: 30px;
    }
    
    .table {
        margin-bottom: 25px;
    }
    
    .table thead th {
        padding: 12px 6px;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 12px 6px;
        font-size: 0.85rem;
    }
    
    .price-wrapper {
        padding: 20px 15px;
        margin-top: 15px;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    .price::after {
        width: 60px;
        height: 2px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .time-table .row {
        gap: 20px;
    }
    
    .time-table .col-12 {
        margin-bottom: 20px;
    }
    
    .table {
        margin-bottom: 20px;
    }
    
    .table thead th {
        padding: 10px 4px;
        font-size: 0.7rem;
    }
    
    .table tbody td {
        padding: 10px 4px;
        font-size: 0.8rem;
    }
    
    .price-wrapper {
        padding: 15px 10px;
        margin-top: 10px;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

/* Animation for page load */
.time-table {
    animation: timeTableFadeIn 0.8s ease-out;
}

@keyframes timeTableFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better interactivity */
.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover td {
    color: #2d3748;
}

/* Focus states for accessibility */
.table tbody tr:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .time-table {
        background: linear-gradient(135deg, #1a202c, #2d3748, #4a5568);
    }
    
    .title-wrapper {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #fff;
    }
    
    .time-table-title {
        color: #fff;
    }
    
    .table {
        background: #2d3748;
    }
    
    .table tbody tr:hover {
        background: linear-gradient(135deg, #4a5568, #718096);
    }
    
    .table tbody td {
        color: #e2e8f0;
    }
    
    .table tbody td:first-child {
        color: #fff;
    }
    
    
    
    
    .price-wrapper {
        background: #2d3748;
    }
    
    .price {
        color: #fff;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .time-table {
        background: #fff;
    }
    
    .title-wrapper {
        background: #000;
        color: #fff;
        border-left-color: #ff0000;
    }
    
    .time-table-title {
        color: #fff;
    }
    
    .table {
        background: #fff;
        border: 2px solid #000;
    }
    
    .table thead {
        background: #000;
    }
    
    .table thead th {
        color: #fff;
    }
    
    .table tbody td {
        color: #000;
    }
    
    
    
    
    .price-wrapper {
        background: #fff;
        border: 2px solid #000;
    }
    
    .price {
        color: #000;
    }
}

/* Price Column Alignment */
.time-table .col-lg-4 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.time-table .col-lg-4 .title-wrapper {
    margin-bottom: 0;
}

.time-table .col-lg-4 .price-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Remove all yellow lines */
.section-title::after {
    display: none !important;
}

.time-table .title-wrapper::after {
    display: none !important;
}

.time-table .price::after {
    display: none !important;
}

/* Remove any empty space above table */
.table {
    margin-top: 0 !important;
}

.table thead {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any yellow lines from Sanja's CSS */
.time-table .title-wrapper::before {
    display: none !important;
}

.time-table .price-wrapper::before {
    display: none !important;
}

/* Override Sanja's price background */
.time-table .price {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Override any other yellow elements */
* {
    --yellow-color: #3b82f6 !important;
    --accent-color: #3b82f6 !important;
}
