/* ===================================
   AIRBNB-STYLE UI COMPONENTS
   Reusable card and component styles
   =================================== */

/* ===================================
   MATERIAL CARDS
   =================================== */

.materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 600px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1200px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.material-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.material-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.material-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-gray-200);
}

.material-card-content {
    padding: 16px;
}

.material-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 6px;
    line-height: 1.3;
}

.material-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-700);
    margin-bottom: 4px;
}

.material-card-description {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   STAT CARDS (Dashboard Metrics)
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray-700);
    font-weight: 500;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--color-success);
}

.stat-change.negative {
    color: var(--color-error);
}

/* ===================================
   CHART CARDS (Analytics)
   =================================== */

.chart-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
    margin-bottom: var(--space-6);
}

.chart-header {
    margin-bottom: var(--space-4);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 4px;
}

.chart-subtitle {
    font-size: 14px;
    color: var(--color-gray-700);
}

.chart-container {
    min-height: 300px;
}

/* ===================================
   ENQUIRY CARDS/LIST
   =================================== */

.enquiry-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.enquiry-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.enquiry-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: var(--color-gray-300);
}

.enquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.enquiry-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enquiry-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-700);
}

.enquiry-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
}

.enquiry-date {
    font-size: 13px;
    color: var(--color-gray-600);
}

.enquiry-snippet {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.enquiry-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.enquiry-badge.new {
    background: var(--color-primary);
    color: white;
}

.enquiry-badge.read {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

/* ===================================
   PROFILE CARD
   =================================== */

.profile-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: var(--color-gray-700);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.profile-detail-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-700);
}

.profile-detail-value {
    font-size: 14px;
    color: var(--color-black);
}

/* ===================================
   FLOATING ACTION BUTTON
   =================================== */

.fab {
    position: fixed;
    bottom: 85px;
    /* Above bottom tabs on mobile */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 56, 92, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

@media (min-width: 900px) {
    .fab {
        bottom: 30px;
        right: 30px;
    }
}

/* ===================================
   EMPTY STATES
   =================================== */

.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-4);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-black);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-base);
    color: var(--color-gray-700);
    margin-bottom: var(--space-4);
}