/* ================================
   RESALE TICKETS - HORIZONTAL TICKET STYLE
================================ */

.resale-tickets-section {
    padding: 3rem 0;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Section Header */
.resale-section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.resale-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--troisp-s-heading);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.resale-subtitle {
    font-size: 1rem;
    color: var(--troisp-s-text);
    margin: 0;
    font-weight: 400;
}

/* ================================
   SEARCH & FILTER SECTION
================================ */

.resale-search-filter-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.5) 0%, rgba(92, 157, 255, 0.05) 100%);
    border: 1px solid var(--troisp-s-border);
    border-radius: 1rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Search Bar */
.resale-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.resale-search-input {
    flex: 1;
    padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    background: var(--troisp-s-container-bg);
    border: 1px solid var(--troisp-s-border);
    border-radius: 0.65rem;
    color: var(--troisp-s-heading);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    min-width: 0;
}

.resale-search-input::placeholder {
    color: var(--troisp-s-text);
}

.resale-search-input:focus {
    background: rgba(26, 29, 36, 0.8);
    border-color: var(--troisp-s-text-accent);
    box-shadow: 0 0 0 3px rgba(92, 157, 255, 0.1);
}

.resale-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    color: var(--troisp-s-text-accent);
    pointer-events: none;
}

/* Filters Container */
.resale-filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.resale-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resale-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--troisp-s-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.resale-filter-select {
    padding: 0.7rem 1rem;
    background: var(--troisp-s-container-bg);
    border: 1px solid var(--troisp-s-border);
    border-radius: 0.5rem;
    color: var(--troisp-s-heading);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C9DFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

.resale-filter-select:hover {
    border-color: var(--troisp-s-text-accent);
}

.resale-filter-select:focus {
    border-color: var(--troisp-s-text-accent);
    box-shadow: 0 0 0 3px rgba(92, 157, 255, 0.1);
}

.resale-filter-select option {
    background: var(--troisp-s-container-bg);
    color: var(--troisp-s-heading);
}

/* Results Info */
.resale-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    color: var(--troisp-s-text);
}

.resale-results-count {
    font-weight: 600;
    color: var(--troisp-s-heading);
}

/* Grid Layout - 2 columns for horizontal tickets */
.resale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Card Container - Horizontal Ticket Style */
.resale-card {
    display: flex;
    align-items: stretch;
    height: auto;
    min-height: 240px;
    background: linear-gradient(135deg, var(--troisp-s-container-bg) 0%, rgba(26, 29, 36, 0.8) 100%);
    border: 1px solid var(--troisp-s-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: cardFadeIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.resale-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--troisp-s-accent), #00cc3f);
}

.resale-card:hover {
    border-color: var(--troisp-s-border-accent);
    background: linear-gradient(135deg, var(--troisp-s-container-bg) 0%, rgba(92, 157, 255, 0.1) 100%);
    box-shadow: 0 12px 40px rgba(0, 187, 52, 0.2), 0 0 30px rgba(92, 157, 255, 0.15);
    transform: translateY(-4px);
}

/* Image Container */
.resale-card-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(92, 157, 255, 0.15), rgba(0, 187, 52, 0.1));
}

.resale-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 0;
    opacity: 0.7;
}

.resale-card:hover .resale-card-image img {
    transform: scale(1.1);
    opacity: 1;
}

.resale-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 157, 255, 0.2), rgba(0, 187, 52, 0.15));
    color: var(--troisp-s-text-accent);
}

.resale-card-image-placeholder .icon-ticket {
    font-size: 4rem;
    opacity: 0.4;
}

/* Price Badge - Positioned on image */
.resale-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--troisp-s-accent), #00cc3f);
    padding: 0.85rem 1.25rem;
    border-radius: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 187, 52, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.resale-price-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.resale-price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.35rem;
}

/* Type Badge */
.resale-type-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 187, 52, 0.15);
    border: 1.5px solid var(--troisp-s-accent);
    color: var(--troisp-s-accent);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Card Content */
.resale-card-content {
    flex: 1;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resale-event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--troisp-s-heading);
    /* margin: 0 0 0.75rem 0; */
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.resale-card:hover .resale-event-title {
    color: var(--troisp-s-text-accent);
}

/* Organizer Info */
.resale-organizer-info {
    font-size: 0.85rem;
    color: var(--troisp-s-text);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.resale-organizer-info strong {
    color: var(--troisp-s-heading);
    font-weight: 600;
}

/* Event Info Container */
.resale-event-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* Event Info */
.resale-event-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--troisp-s-text);
    width: 100%;
}

.resale-info-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    color: var(--troisp-s-accent);
    opacity: 0.8;
}

.resale-info-text {
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Card Actions */
.resale-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.resale-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.resale-btn-primary {
    background: linear-gradient(135deg, var(--troisp-s-accent), #00cc3f);
    color: #ffffff;
    flex: 1;
    max-width: 200px;
}

.resale-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.resale-btn-primary:hover::before {
    left: 100%;
}

.resale-btn-primary:hover {
    background: linear-gradient(135deg, #00cc3f, var(--troisp-s-accent));
    box-shadow: 0 8px 25px rgba(0, 187, 52, 0.4);
    transform: translateY(-2px);
}

.resale-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.resale-btn-secondary {
    background: transparent;
    color: var(--troisp-s-text-accent);
    border: 1.5px solid var(--troisp-s-text-accent);
    transition: all 0.3s ease;
}

.resale-btn-secondary:hover {
    background: rgba(92, 157, 255, 0.15);
    border-color: var(--troisp-s-heading);
    color: var(--troisp-s-heading);
    box-shadow: 0 4px 15px rgba(92, 157, 255, 0.25);
    transform: translateY(-2px);
}

.resale-btn-secondary:active {
    transform: translateY(0);
}

/* Button Icons */
.resale-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Empty State */
.resale-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(92, 157, 255, 0.05);
    border: 1px dashed var(--troisp-s-border-accent);
    border-radius: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.resale-empty-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    color: var(--troisp-s-text-accent);
    opacity: 0.3;
}

.resale-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.resale-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--troisp-s-heading);
    margin: 0 0 0.75rem 0;
}

.resale-empty-text {
    color: var(--troisp-s-text);
    margin: 0;
    font-size: 1rem;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

/* Tablets - Adjust horizontal layout */
@media (max-width: 1024px) {
    .resale-grid {
        grid-template-columns: 1fr;
    }
    
    .resale-search-filter-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .resale-filters-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resale-card {
        min-height: 220px;
    }
    
    .resale-card-image {
        width: 240px;
        min-width: 240px;
    }
    
    .resale-card-content {
        padding: 1.5rem;
    }
    
    .resale-event-title {
        font-size: 1.15rem;
    }
    
    .resale-event-info-group {
        gap: 0.75rem;
    }
    
    .resale-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .resale-btn-primary {
        max-width: 180px;
    }
}

/* Small Tablets / Large Phones - Compact horizontal */
@media (max-width: 768px) {
    .resale-search-filter-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .resale-search-bar {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .resale-search-input {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .resale-search-icon {
        left: 0.75rem;
        width: 1rem;
        height: 1rem;
    }
    
    .resale-filters-container {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .resale-filter-label {
        font-size: 0.75rem;
    }
    
    .resale-filter-select {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
        padding-right: 2rem;
    }
    
    .resale-results-info {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }
    
    .resale-card {
        flex-direction: column;
        min-height: auto;
        gap: 0;
    }
    
    .resale-card::before {
        width: 100%;
        height: 3px;
        left: 0;
        top: 0;
        right: 0;
    }
    
    .resale-card-image {
        width: 100%;
        min-width: auto;
        height: 220px;
    }
    
    .resale-card-content {
        padding: 1.25rem;
    }
    
    .resale-event-info-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .resale-event-info {
        font-size: 0.85rem;
    }
    
    .resale-card-actions {
        gap: 0.75rem;
    }
    
    .resale-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        flex: 1;
    }
    
    .resale-btn-primary {
        max-width: none;
    }
    
    .resale-price-badge {
        padding: 0.65rem 1rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .resale-price-value {
        font-size: 1.2rem;
    }
    
    .resale-type-badge {
        padding: 0.45rem 0.8rem;
        bottom: 0.75rem;
        left: 0.75rem;
        font-size: 0.7rem;
    }
}

/* Mobile Phones - Stacked layout */
@media (max-width: 480px) {
    .resale-search-filter-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .resale-search-bar {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .resale-search-input {
        padding: 0.65rem 0.75rem 0.65rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .resale-search-icon {
        left: 0.6rem;
        width: 0.95rem;
        height: 0.95rem;
    }
    
    .resale-filters-container {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .resale-filter-group {
        gap: 0.35rem;
    }
    
    .resale-filter-label {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
    
    .resale-filter-select {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        padding-right: 1.75rem;
    }
    
    .resale-results-info {
        margin-bottom: 1rem;
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }
    
    .resale-grid {
        gap: 1rem;
    }
    
    .resale-tickets-section {
        padding: 2rem 0;
    }
    
    .resale-section-header {
        margin-bottom: 2rem;
    }
    
    .resale-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .resale-subtitle {
        font-size: 0.9rem;
    }
    
    .resale-card {
        border-radius: 0.8rem;
        min-height: auto;
    }
    
    .resale-card-image {
        height: 200px;
    }
    
    .resale-card-content {
        padding: 1rem;
    }
    
    .resale-event-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .resale-organizer-info {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .resale-event-info-group {
        gap: 0.5rem;
    }
    
    .resale-event-info {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .resale-info-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .resale-card-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .resale-btn {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .resale-price-badge {
        padding: 0.6rem 0.8rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .resale-price-value {
        font-size: 1.1rem;
    }
    
    .resale-type-badge {
        padding: 0.35rem 0.6rem;
        bottom: 0.5rem;
        left: 0.5rem;
        font-size: 0.65rem;
    }
    
    .resale-empty-state {
        padding: 3rem 1.5rem;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .resale-title {
        font-size: 1.25rem;
    }
    
    .resale-event-title {
        font-size: 0.95rem;
    }
    
    .resale-event-info {
        font-size: 0.75rem;
    }
    
    .resale-btn {
        padding: 0.6rem;
        font-size: 0.7rem;
    }
    
    .resale-card-image {
        height: 180px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .resale-empty-state {
        background: rgba(92, 157, 255, 0.08);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .resale-card,
    .resale-card-image img,
    .resale-btn,
    .resale-btn-primary::before,
    .resale-tickets-section {
        animation: none !important;
        transition: none !important;
    }
}

/* Printing */
@media print {
    .resale-card-actions {
        display: none;
    }
    
    .resale-section-header {
        margin-bottom: 1.5rem;
    }
}
