/* Game Idea Generator - Frontend Styles */

.game-idea-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Controls */
.game-idea-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.game-idea-sort-label {
    font-weight: 600;
    margin-right: 8px;
    color: #555;
}

.game-idea-sort-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.game-idea-sort-link:hover {
    background: #e0e0e0;
    color: #333;
}

.game-idea-sort-link.active {
    background: #4a90d9;
    color: #fff;
}

.game-idea-filter-active {
    font-size: 14px;
    color: #555;
}

.game-idea-filter-clear {
    margin-left: 8px;
    color: #d9534f;
    text-decoration: none;
    font-size: 13px;
}

.game-idea-filter-clear:hover {
    text-decoration: underline;
}

/* Tag Filter */
.game-idea-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 0;
}

.game-idea-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 16px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s ease;
}

.game-idea-filter-tag:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.game-idea-filter-tag.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.game-idea-filter-tag .tag-count {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}

.game-idea-filter-tag.active .tag-count {
    background: rgba(255,255,255,0.3);
}

/* Card Grid */
.game-idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card */
.game-idea-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-idea-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.game-idea-card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Genre Badge */
.game-idea-genre-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.game-idea-genre-badge.small {
    font-size: 11px;
    padding: 2px 8px;
}

/* Platform Badge */
.game-idea-platform-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4fd;
    color: #2980b9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Difficulty */
.game-idea-difficulty {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.game-idea-difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.game-idea-difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.game-idea-difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

/* Title */
.game-idea-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.game-idea-title a {
    color: #333;
    text-decoration: none;
}

.game-idea-title a:hover {
    color: #4a90d9;
}

/* Excerpt */
.game-idea-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
    flex-grow: 1;
}

/* Meta */
.game-idea-meta {
    margin-bottom: 8px;
}

.game-idea-platform {
    font-size: 13px;
    color: #888;
}

.game-idea-platform::before {
    content: "\1F3AE";
    margin-right: 4px;
}

/* Tags */
.game-idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.game-idea-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: background 0.2s ease;
}

.game-idea-tag:hover {
    background: #4a90d9;
    color: #fff;
}

/* Footer */
.game-idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.game-idea-date {
    font-size: 12px;
    color: #999;
}

/* Like Button */
.game-idea-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.game-idea-like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.game-idea-like-btn .like-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.game-idea-like-btn:hover .like-icon {
    transform: scale(1.2);
}

.game-idea-like-btn.game-idea-liked {
    background: #fdf2f2;
    border-color: #e74c3c;
    color: #e74c3c;
}

.game-idea-like-btn.game-idea-liked .like-icon {
    content: "filled";
}

.game-idea-like-btn.game-idea-liked .like-icon::after {
    content: "";
}

/* Override heart character for liked state */
.game-idea-like-btn.game-idea-liked .like-icon {
    font-size: 18px;
}

/* Animate on click */
@keyframes likeHeart {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.game-idea-like-btn.just-liked .like-icon {
    animation: likeHeart 0.4s ease;
}

/* Pagination */
.game-idea-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding: 20px 0;
}

.game-idea-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
}

.game-idea-page-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.game-idea-page-link.current {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}

.game-idea-page-link.prev,
.game-idea-page-link.next {
    padding: 0 14px;
}

/* Empty State */
.game-idea-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Single Page */
.game-idea-single-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.game-idea-single-footer {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.game-idea-related {
    margin: 30px 0;
}

.game-idea-related h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

.game-idea-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.game-idea-related-item {
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background 0.2s;
}

.game-idea-related-item:hover {
    background: #f0f0f0;
}

.game-idea-related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.game-idea-related-item a:hover {
    color: #4a90d9;
}

.game-idea-back {
    margin: 24px 0;
}

.game-idea-back a {
    color: #4a90d9;
    text-decoration: none;
    font-size: 14px;
}

.game-idea-back a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .game-idea-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .game-idea-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-idea-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-idea-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .game-idea-card {
        padding: 16px;
    }

    .game-idea-pagination {
        flex-wrap: wrap;
    }
}
