/* Ottoke Related Posts - Frontend Styles */

/* 섹션 컨테이너 */
.ottoke-related-posts {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

/* 섹션 제목: 왼쪽 indigo 바 */
.ottoke-related-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #6366f1;
    line-height: 1.4;
}

/* 그리드: 데스크탑 2x2 */
.ottoke-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 카드형 아이템 */
.ottoke-related-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ottoke-related-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 썸네일: 16:9 비율 */
.ottoke-related-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #f1f5f9;
}

.ottoke-related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.ottoke-related-item:hover .ottoke-related-thumb img {
    transform: scale(1.05);
}

/* 정보 영역 */
.ottoke-related-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

/* 제목: 2줄 말줄임 */
.ottoke-related-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ottoke-related-item:hover .ottoke-related-item-title {
    color: #6366f1;
}

/* 날짜 */
.ottoke-related-date {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1;
}

/* 반응형: 태블릿 (768px 이하) - 2열 유지, 간격 조정 */
@media (max-width: 768px) {
    .ottoke-related-posts {
        margin-top: 32px;
        padding-top: 24px;
    }

    .ottoke-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ottoke-related-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .ottoke-related-info {
        padding: 12px 14px 14px;
    }

    .ottoke-related-item-title {
        font-size: 13px;
    }
}

/* 반응형: 모바일 (480px 이하) - 1열 */
@media (max-width: 480px) {
    .ottoke-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ottoke-related-item {
        flex-direction: row;
        border-radius: 10px;
    }

    .ottoke-related-thumb {
        width: 100px;
        min-width: 100px;
        padding-top: 0;
        height: 80px;
        border-radius: 10px 0 0 10px;
    }

    .ottoke-related-thumb img {
        border-radius: 10px 0 0 10px;
    }

    .ottoke-related-info {
        padding: 10px 12px;
        justify-content: center;
    }

    .ottoke-related-item-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .ottoke-related-date {
        font-size: 11px;
    }
}
