/* ================================
   COMPONENT STYLES - BOATS GRID
   ================================ */

/* ===== PUBLIC BOATS GRID ===== */
.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.boat-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    animation: cardIn 0.5s ease both;
}

.boat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-400);
    box-shadow: var(--shadow-glow);
}

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

.boat-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.boat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.boat-card:hover .boat-card-image img {
    transform: scale(1.08);
}

.boat-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(10, 14, 23, 0.9));
}

.boat-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1;
}

.boat-card-body {
    padding: var(--space-lg);
}

.boat-card-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.boat-card-phrase {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.boat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.boat-card-count {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.boat-card-count span {
    color: var(--primary-300);
    font-weight: 700;
}

.boat-card-action {
    font-size: 0.8rem;
    color: var(--primary-400);
    font-weight: 600;
}

/* ===== NO BOAT IMAGE PLACEHOLDER ===== */
.boat-card-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    font-size: 4rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.empty-state-mini {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== BOAT DETAIL (Gestor) ===== */
.boat-detail-card {
    margin-bottom: var(--space-xl);
}

.boat-detail-header {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    flex-wrap: wrap;
}

.boat-detail-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-hover);
}

.boat-detail-info {
    flex: 1;
}

.boat-detail-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.boat-phrase {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.boat-detail-meta {
    display: flex;
    gap: var(--space-sm);
}

.boat-detail-actions {
    display: flex;
    gap: var(--space-sm);
}

.boat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.boat-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-base);
}

.boat-gallery-grid img:hover {
    transform: scale(1.05);
}

/* ===== CREW ===== */
.crew-section {
    margin-top: var(--space-xl);
}

.crew-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.crew-header h3 {
    font-size: 1.3rem;
}

.crew-list {
    display: grid;
    gap: var(--space-md);
}

.crew-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.crew-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.crew-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.crew-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.crew-details {
    display: flex;
    flex-direction: column;
}

.crew-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.crew-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.crew-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===== RESPONSIVE COMPONENTS ===== */
@media (max-width: 768px) {
    .boats-grid {
        grid-template-columns: 1fr;
    }

    .boat-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .boat-detail-actions {
        width: 100%;
        justify-content: center;
    }

    .crew-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .crew-info {
        flex-direction: column;
    }
}
