/**
 * Tourbo My Account Custom Styles
 */

/* Fix My Account pages padding - content not visible at top */
.woocommerce-account .woocommerce {
    padding-top: 40px !important;
    margin-top: 40px !important;
}

.tourbo-bookings-page,
.tourbo-favorites-page,
.tourbo-history-page {
    padding-top: 80px !important;
    margin-top: 80px !important;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Dashboard Welcome Section */
.tourbo-dashboard-welcome {
    background: linear-gradient(135deg, #aee8f5, rgb(178 221 227));
    color: white !important;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.tourbo-dashboard-welcome h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.tourbo-dashboard-welcome p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Dashboard Stats */
.tourbo-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.stat-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Recent Bookings */
.tourbo-recent-bookings {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tourbo-recent-bookings h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.booking-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.booking-date {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.booking-status .status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.view-all-bookings {
    text-align: center;
    margin-top: 20px;
}

/* Dashboard Actions */
.tourbo-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.dashboard-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.action-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.action-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.action-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Bookings Page */
.tourbo-bookings-page {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tourbo-bookings-page h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 24px;
}

.bookings-table {
    overflow-x: auto;
}

.bookings-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bookings-table th,
.bookings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.bookings-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.bookings-table tbody tr:hover {
    background: #f8f9fa;
}

/* Favorites Page */
.tourbo-favorites-page {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tourbo-favorites-page h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 24px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.favorite-tour-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tour-image {
    height: 200px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-content {
    padding: 20px;
}

.tour-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.tour-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.tour-content h3 a:hover {
    color: #667eea;
}

.tour-location,
.tour-duration {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.tour-price {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.tour-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tour-actions .button {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
}

.remove-favorite {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

.remove-favorite:hover {
    background: #c0392b;
}

.no-favorites,
.no-history {
    text-align: center;
    padding: 60px 20px;
}

.no-favorites-icon,
.no-history-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-favorites h3,
.no-history h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
}

.no-favorites p,
.no-history p {
    margin: 0 0 20px 0;
    color: #7f8c8d;
}

/* History Page */
.tourbo-history-page {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tourbo-history-page h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 24px;
}

.history-timeline {
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.history-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #e9ecef;
}

.history-date {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.history-date .date {
    font-weight: 600;
    color: #2c3e50;
}

.history-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.history-content h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.tours-in-order {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tour-in-history {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.tour-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.tour-info h5 a {
    color: #2c3e50;
    text-decoration: none;
}

.tour-info h5 a:hover {
    color: #667eea;
}

.tour-meta {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tourbo-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .tourbo-dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-actions {
        flex-direction: column;
    }
    
    .history-item {
        padding-left: 40px;
    }
    
    .history-timeline::before {
        left: 15px;
    }
    
    .history-item::before {
        left: 6px;
        width: 18px;
        height: 18px;
    }
    
    .tour-in-history {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* WooCommerce Integration */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #667eea;
    color: white;
}

.woocommerce-MyAccount-navigation ul li a {
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8f9fa;
    color: #667eea;
}
