/* trips/static/trips/trips.css */

/* ========================================
   UNIFIED TRIP CARD BASE STYLES
   ======================================== */

/* Base trip card styling - shared across all variants */
.trip-card,
.explore-trip-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.trip-card:hover,
.explore-trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Trip card image - shared styling */
.trip-card-image {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Trip card content - shared styling */
.trip-card-content {
    padding: 1.5rem;
}

.trip-card-header {
    margin-bottom: 1rem;
}

/* Trip title - shared styling */
.trip-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Trip description - shared styling */
.trip-description {
    color: var(--neutral-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Trip meta - shared styling */
.trip-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

.trip-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Trip stats - shared styling */
.trip-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-light);
    border-radius: 8px;
}

.trip-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-dark);
}

.trip-stat i {
    color: var(--accent);
}

/* Trip card footer - shared styling */
.trip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Copy trip button styling */
.copy-trip-btn {
    white-space: nowrap;
}

.copy-trip-btn .copy-btn-text {
    margin-left: 0.3rem;
}

/* Trip owner - shared styling */
.trip-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--neutral-dark);
    font-weight: 500;
    background: var(--neutral-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trip-owner:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.trip-owner i {
    color: var(--accent);
    transition: color 0.2s ease;
}

.trip-owner:hover i {
    color: white;
}

/* ========================================
   TRIPS APP SPECIFIC STYLES
   ======================================== */

/* View Trips Page Styles */
.trips-page-container {
    min-height: 100vh;
    background: var(--neutral-light);
    padding: 2rem 0;
}

.trips-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.trips-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.trips-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trips-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.trips-stats {
    margin-bottom: 2rem;
}

.trip-count {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.trips-header-actions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.trips-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Trip card base styles now handled by main styles.css */

/* Detailed variant specific overrides - inherits base styles from main styles.css */

.trip-card-image {
    height: 200px;
    /* Inherits other styles from main styles.css */
}

.trip-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trip-card:hover .trip-card-overlay {
    opacity: 1;
}

.trip-card-actions {
    display: flex;
    gap: 1rem;
}

/* Trip card content styles now handled by main styles.css */

/* Detailed variant specific overrides */
.trip-title {
    font-size: 1.4rem;
    margin: 0 !important;
    /* Inherits other styles from main styles.css */
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Share Modal */
#shareModal {
    display: none;
}

.share-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trips-header h1 {
        font-size: 2rem;
    }

    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trip-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .trips-page-container {
        padding: 1rem 0;
    }

    .trips-header {
        padding: 2rem 0;
    }

    .trips-header-content,
    .trips-content {
        padding: 0 1rem;
    }

    .trip-card-content {
        padding: 1rem;
    }
}
