/* Trip Header Component Styles */
/* Ubicación: resources/css/components/trip-header.css */

/* Trip Title */
.trip-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.trip-title-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    outline: none;
    padding: 0.5rem 0;
}

.trip-title-input::placeholder {
    color: #adb5bd;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    color: #007bff;
    font-size: 1.2rem;
}

.card-header h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: end;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-update-dates {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-update-dates:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Compact Trip Header - public/css/components/trip-header.css */

.trip-header-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: transparent;
}

.trip-cover {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    flex-shrink: 0;
    overflow: hidden;
}

.cover-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}

.change-cover-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111827;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.trip-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.trip-title-input {
    border: none;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    background: transparent;
    outline: none;
    width: 100%;
}

.persons-compact {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.person-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 6px 8px;
    border-radius: 999px;
    color: white;
    backdrop-filter: blur(4px);
}

.person-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
}

.person-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.person-name {
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.person-email {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Compact Trip Header with Full-width Banner - public/css/components/trip-header.css */

.trip-header-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Top area: title (styled as H2) and compact subtitle */
.trip-header-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 6px;
}

.h2-style {
    font-size: 1.5rem; /* h2-like on desktop */
    font-weight: 700;
    border: none;
    background: transparent;
    color: #0f172a;
    padding: 0;
    outline: none;
}

.trip-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.trip-subtitle .subtitle-date {
    font-size: 0.8rem; /* smaller for date */
    color: #64748b;
}

.trip-subtitle .subtitle-sep { color: rgba(71,85,105,0.5); }

/* Banner: full width under the top block */
.trip-banner {
    width: 100%;
    height: 200px; /* desktop height */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(2,6,23,0.08);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    /* Transparent overlay so banner shows clean image */
    pointer-events: none;
}

.banner-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    pointer-events: auto; /* allow clicks on the button */
}

.change-cover-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(2,6,23,0.12);
}

.banner-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.banner-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 6px 10px;
    border-radius: 999px;
}

.chip-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.95);
}

.chip-meta { display: flex; flex-direction: column; min-width:0 }
.chip-name { font-size: 0.95rem; color: #0b1220; }
.chip-email { font-size: 0.8rem; color: #475569; }

/* Trip Header Card styles - public/css/components/trip-header.css */

.trip-header-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.08);
    overflow: hidden;
    display: block;
    width: 100%;
    border: 1px solid rgba(2,6,23,0.06); /* subtle border to make card visible */
    margin: 16px 0; /* space around card */
}

.trip-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px; /* bigger padding so the title is clearly inside the card */
    gap: 12px;
    background: transparent; /* keep consistent */
}

.trip-header-card .h2-style {
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    background: transparent !important;
    color: #0f172a;
    padding: 0;
    margin: 0;
    outline: none;
    width: 100%;
}

.trip-header-card .trip-title-section,
.trip-header-card .trip-title-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.trip-card-top .trip-subtitle {
    margin-top: 6px;
    color: #475569;
    font-size: 0.95rem;
}

.trip-card-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
}

.trip-card-banner .banner-overlay { position: absolute; inset: 0; pointer-events: none; }
.trip-card-banner .banner-actions { position: absolute; top: 10px; right: 10px; pointer-events: auto; }

.trip-card-banner { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

@media (max-width: 768px) {
    .h2-style { font-size: 1.15rem; }
    .trip-subtitle { font-size: 0.8rem; gap: 6px; }
    .trip-banner { height: 140px; border-radius: 6px; }
    .change-cover-btn { width: 36px; height: 36px; }
    .trip-card-banner, .trip-banner { height: 140px; }
    .trip-card-top { padding: 12px; }
}
