/* Cluster Builder Frontend Styles */

.seo-cluster-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -1.5rem;
    padding: 0 20px 20px;
    font-family: inherit;
}

/* Utilities */
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.pb-2 { padding-bottom: 0.5rem; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-blue-600 { color: #2563eb; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.border-b { border-bottom-width: 1px; }

/* Grid Layouts */
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
.cluster-list-feed {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cluster-list-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .cluster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cluster-list-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Cards */
.cluster-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cluster-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}
.feed-item a { text-decoration: none; color: inherit; }
.feed-item h3 a:hover { color: #2563eb; text-decoration: underline; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* New Utilities for Enhanced Design */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.relative { position: relative; }
.absolute { position: absolute; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.z-10 { z-index: 10; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.text-white { color: #ffffff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }

.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }

.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Group Hover Logic */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

.leading-tight { line-height: 1.25; }
.mb-0 { margin-bottom: 0; }

/* Additional Utilities */
.top-0 { top: 0; }
.left-0 { left: 0; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.pointer-events-none { pointer-events: none; }
.aspect-video { aspect-ratio: 16 / 9; }
.block { display: block; }
