/**
 * Composants communs réutilisables
 * Boutons, alertes, titres, cartes, états vides, champs de formulaire
 * 
 * @package NightAndRide
 */

/* ===== TITRES DE PAGES ===== */
.nar-page-title,
.nar-host-bookings-title,
.nar-bookings-title,
.nar-wallet-title,
.nar-become-host-title,
.nar-edit-account-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nar-page-title .dashicons,
.nar-host-bookings-title .dashicons,
.nar-bookings-title .dashicons,
.nar-wallet-title .dashicons,
.nar-become-host-title .dashicons,
.nar-edit-account-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #FF9100;
}

/* ===== BOUTONS ===== */
.button.nar-btn-primary,
.nar-btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.button.nar-btn-primary:hover,
.nar-btn-primary:hover {
    background: linear-gradient(135deg, #1a5a8a 0%, #135178 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    color: #fff;
}

.button.nar-btn-secondary,
.nar-btn-secondary {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.button.nar-btn-secondary:hover,
.nar-btn-secondary:hover {
    background: #e0e0e0;
}

.button.nar-btn-outline,
.nar-btn-outline {
    padding: 8px 16px;
    background: transparent;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.button.nar-btn-outline:hover,
.nar-btn-outline:hover {
    background: #2271b1;
    color: #fff;
}

.button.nar-btn-danger,
.nar-btn-danger {
    padding: 8px 16px;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.button.nar-btn-danger:hover,
.nar-btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

.nar-btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

/* ===== ÉTATS VIDES ===== */
.nar-empty-state,
.nar-no-bookings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.nar-empty-state-icon,
.nar-no-bookings-icon {
    margin-bottom: 20px;
}

.nar-empty-state-icon .dashicons,
.nar-no-bookings-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #ccc;
}

.nar-empty-state h3,
.nar-no-bookings h3 {
    font-size: 24px;
    color: #555;
    margin-bottom: 10px;
}

.nar-empty-state p,
.nar-no-bookings p {
    font-size: 16px;
    color: #777;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARTES ===== */
.nar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.nar-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nar-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* ratio 3:2 */
    overflow: hidden;
    background: #f5f5f5;
}

.nar-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nar-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}

.nar-card-placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #bbb;
}

.nar-card-content {
    padding: 20px;
}

.nar-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.nar-card-title a {
    color: #333;
    text-decoration: none;
}

.nar-card-title a:hover {
    color: #2271b1;
}

.nar-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.nar-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nar-card-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #999;
}

.nar-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* ===== "À VENIR" MESSAGE ===== */
.nar-coming-soon-message {
    background: #f0f6fc;
    border: 2px solid #d0e4f7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nar-coming-soon-message > .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #2271b1;
}

.nar-coming-soon-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.nar-coming-soon-content p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

.nar-coming-soon-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.nar-coming-soon-content ul li {
    font-size: 15px;
    color: #555;
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.nar-coming-soon-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2271b1;
    font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nar-page-title,
    .nar-host-bookings-title,
    .nar-bookings-title,
    .nar-wallet-title,
    .nar-become-host-title,
    .nar-edit-account-title {
        font-size: 24px;
    }
    
    .nar-card-actions {
        flex-direction: column;
    }
    
    .nar-card-actions .button {
        width: 100%;
        text-align: center;
    }
}
