/* Story List Styles */
.relatos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.relatos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left .page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left .page-title i {
    color: var(--purple-primary);
    font-size: 1.5rem;
}

.stories-count {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* View Buttons */
.view-buttons {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid var(--border-primary);
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.view-btn.active {
    background: var(--purple-primary);
    color: white;
}

/* Filter */
.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.filter-select:focus {
    border-color: var(--purple-primary);
}

/* Stories List */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-card {
    display: flex;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.story-card:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.2);
    transform: translateY(-2px);
}

.story-number {
    background: var(--danger);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.story-cover {
    width: 120px;
    height: 160px;
    margin-right: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.story-info {
    flex: 1;
    min-width: 0;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.story-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: var(--purple-primary);
}

.story-author {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.story-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat i {
    color: var(--purple-primary);
    width: 14px;
}

.story-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.story-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-top-views {
    background: var(--danger);
    color: white;
}

.badge-genre {
    background: var(--purple-primary);
    color: white;
}

.story-actions {
    margin-left: 1rem;
    flex-shrink: 0;
}

.btn-read {
    background: var(--purple-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: var(--purple-hover);
    transform: scale(1.05);
    color: white;
}

/* Grid View */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.2);
}

.grid-cover {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.grid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-cover img {
    transform: scale(1.05);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-card:hover .grid-overlay {
    opacity: 1;
}

.play-button {
    background: var(--purple-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--purple-hover);
    transform: scale(1.1);
    color: white;
}

.grid-info {
    padding: 1rem;
}

.grid-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.grid-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.grid-title a:hover {
    color: var(--purple-primary);
}

.grid-author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
}

.grid-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.grid-stats i {
    color: var(--purple-primary);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination a:hover {
    background: var(--bg-hover);
    border-color: var(--purple-primary);
    color: var(--text-primary);
}

.pagination .active span {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .relatos-container {
        padding: 1rem;
    }

    .relatos-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-controls {
        justify-content: space-between;
    }

    .story-card {
        flex-direction: column;
        text-align: center;
    }

    .story-number {
        align-self: flex-start;
        margin-bottom: 1rem;
    }

    .story-cover {
        width: 100%;
        height: 200px;
        margin: 0 0 1rem 0;
    }

    .story-actions {
        margin: 1rem 0 0 0;
    }

    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .grid-cover {
        height: 200px;
    }
} 