/* Miami Gardens Ticketmaster Events Styles */

/* Color Variables - Miami Gardens Brand */
:root {
    --mg-teal: #2ba896;
    --mg-orange: #f39237;
    --mg-dark: #333;
    --mg-light: #f5f5f5;
}

/* General Container Styles */
.mg-tm-events {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 30px 0;
}

/* GRID LAYOUT */
.tm-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.tm-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(43, 168, 150, 0.2);
}

.tm-event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--mg-light);
}

.tm-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tm-event-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--mg-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.tm-event-date,
.tm-event-venue,
.tm-event-price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.tm-icon {
    font-size: 1.1em;
}

.tm-time {
    color: var(--mg-teal);
    font-weight: 500;
}

.tm-buy-button {
    display: inline-block;
    background: var(--mg-teal);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.3s ease;
}

.tm-buy-button:hover {
    background: var(--mg-orange);
    color: #fff;
}

/* Powered by Ticketmaster Badge */
.tm-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #026cdf;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tm-logo {
    width: 16px;
    height: 16px;
    color: #fff;
}

.tm-powered-by:hover {
    background: #0257b8;
}

/* LIST LAYOUT */
.tm-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.tm-event-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.tm-event-list-item:hover {
    box-shadow: 0 4px 16px rgba(43, 168, 150, 0.2);
}

.tm-event-list-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--mg-light);
}

.tm-event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-event-list-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tm-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 15px;
}

.tm-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 15px 0;
    font-size: 0.9em;
    color: #666;
}

.tm-buy-link {
    color: var(--mg-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tm-buy-link:hover {
    color: var(--mg-orange);
}

.tm-powered-inline {
    font-size: 0.7em;
    padding: 6px 10px;
    margin: 0;
}

/* MINIMAL LAYOUT */
.tm-events-minimal {
    padding: 20px 0;
}

.tm-event-minimal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-event-minimal-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.tm-event-minimal-item:last-child {
    border-bottom: none;
}

.tm-event-minimal-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--mg-dark);
    transition: color 0.3s ease;
}

.tm-event-minimal-item a:hover {
    color: var(--mg-teal);
}

.tm-minimal-title {
    font-weight: 500;
    flex-grow: 1;
}

.tm-minimal-date {
    color: var(--mg-orange);
    font-size: 0.9em;
    font-weight: 600;
}

/* SINGLE EVENT VIEW */
.tm-single-event {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.tm-single-event-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: var(--mg-light);
}

.tm-single-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-single-event-content {
    padding: 30px;
}

.tm-single-event-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--mg-dark);
    margin: 0 0 25px 0;
}

.tm-single-event-details {
    margin: 25px 0;
}

.tm-detail-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tm-detail-item:last-child {
    border-bottom: none;
}

.tm-detail-item strong {
    color: var(--mg-teal);
    display: block;
    margin-bottom: 5px;
}

.tm-please-note {
    background: #fff9e6;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--mg-orange);
}

.tm-single-event-cta {
    margin-top: 30px;
    text-align: center;
}

.tm-buy-button-large {
    display: inline-block;
    background: var(--mg-teal);
    color: #fff;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tm-buy-button-large:hover {
    background: var(--mg-orange);
    color: #fff;
    transform: scale(1.05);
}

.tm-powered-large {
    display: inline-flex;
    margin-top: 15px;
    font-size: 0.9em;
    padding: 10px 16px;
}

.tm-powered-large .tm-logo {
    width: 20px;
    height: 20px;
}

/* ERROR/NO EVENTS MESSAGES */
.tm-no-events,
.tm-error {
    padding: 20px;
    background: var(--mg-light);
    border-radius: 6px;
    text-align: center;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tm-events-grid {
        grid-template-columns: 1fr;
    }
    
    .tm-event-list-item {
        flex-direction: column;
    }
    
    .tm-event-list-image {
        width: 100%;
        height: 200px;
    }
    
    .tm-list-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .tm-buy-link {
        text-align: center;
    }
    
    .tm-powered-inline {
        justify-content: center;
    }
    
    .tm-event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .tm-single-event-content {
        padding: 20px;
    }
    
    .tm-single-event-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .tm-event-minimal-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tm-buy-button-large {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .tm-powered-by {
        font-size: 0.7em;
        padding: 6px 10px;
    }
}
