/* =====================================================
 * Roadly - みんなのドライブ日誌 一覧 (/user-drives/)
 * カード型グリッド + 投稿者情報
 * ===================================================== */

.drives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
}
@media (min-width: 640px) {
    .drives-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .drives-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.drive-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.drive-card:hover {
    transform: translateY(-2px);
    border-color: #dc2424;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 画像エリア */
.drive-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
    overflow: hidden;
}
.drive-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.drive-card-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d4;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}
.drive-card-thumb-empty svg {
    width: 48px;
    height: 48px;
}

/* 本文エリア */
.drive-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}
.drive-card-car {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #737373;
    text-transform: uppercase;
}
.drive-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #171717;
    margin: 0;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.drive-card-comment {
    font-size: 13px;
    line-height: 1.6;
    color: #525252;
    margin: 0;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 投稿者ブロック */
.drive-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
}
.drive-card-author-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #a3a3a3;
    margin-left: auto;
}
.drive-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e5e5;
    flex-shrink: 0;
}
.drive-card-author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #a3a3a3;
}
.drive-card-author-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.drive-card-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #171717;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drive-card-author-username {
    font-size: 11px;
    color: #737373;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
