/**
 * CuiveMedia Trends - Stylesheet
 * Trend- und Analyse-Portal
 */

:root {
    --trends-primary: #f43f5e;
    --trends-secondary: #0ea5e9;
    --trends-success: #10b981;
    --trends-warning: #f59e0b;
    --trends-danger: #ef4444;
    --trends-dark: #1e293b;
    --trends-light: #f8fafc;
    --trends-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

/* Header */
.trends-header {
    background: var(--bg-primary, #fff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.trends-header .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trends-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trends-header .logo-img {
    height: 40px;
    width: auto;
}

.trends-badge {
    background: var(--trends-gradient);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.trends-header .header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.trends-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trends-nav .nav-item {
    padding: 0.5rem 0.75rem;
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trends-nav .nav-item:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--trends-primary);
}

.trends-nav .nav-item.active {
    background: var(--trends-gradient);
    color: #fff;
}

.trends-nav .nav-item i {
    margin-right: 0.35rem;
}

.trends-header .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trends-header .header-btn {
    background: transparent;
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #1f2937);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trends-header .header-btn:hover {
    background: var(--bg-secondary, #f3f4f6);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-primary, #1f2937);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-trends-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--trends-primary);
}

/* Hero Section */
.trends-hero {
    padding: 4rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.trends-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.trends-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.trends-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Cards */
.trend-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trend-category-card {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.trend-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-card-header {
    padding: 2rem;
    color: #fff;
    position: relative;
}

.category-card-header i {
    font-size: 3rem;
    opacity: 0.9;
}

.category-card-body {
    padding: 1.5rem;
}

.category-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1f2937);
}

.category-card-body p {
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category-year-badge {
    display: inline-block;
    background: var(--bg-secondary, #f3f4f6);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Trend Stats Grid */
.trend-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.trend-stat-card {
    background: var(--bg-primary, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trend-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.trend-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
}

.trend-stat-label {
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.trend-stat-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.trend-stat-change.positive {
    color: var(--trends-success);
}

.trend-stat-change.negative {
    color: var(--trends-danger);
}

/* Trend Chart Container */
.trend-chart-container {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.trend-chart-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #1f2937);
}

.trend-chart-wrapper {
    position: relative;
    height: 300px;
}

/* Related Topics / Queries */
.trend-related {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.trend-related h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #1f2937);
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item-name {
    font-weight: 500;
    color: var(--text-primary, #1f2937);
}

.related-item-value {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

.related-item-badge {
    background: var(--trends-gradient);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-item-badge.rising {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Trend List */
.trend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trend-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary, #fff);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.trend-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trend-list-rank {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
}

.trend-list-rank.top-3 {
    background: var(--trends-gradient);
    color: #fff;
}

.trend-list-content {
    flex: 1;
}

.trend-list-name {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.trend-list-meta {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.trend-list-score {
    text-align: right;
}

.trend-list-score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--trends-primary);
}

.trend-list-score-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

/* Content Sections */
.trend-content-section {
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.trend-content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #1f2937);
}

.trend-content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary, #1f2937);
}

.trend-content-section p {
    color: var(--text-secondary, #4b5563);
    line-height: 1.7;
}

/* Footer */
.trends-footer {
    background: var(--bg-secondary, #f8fafc);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.trends-footer h5,
.trends-footer h6 {
    color: var(--text-primary, #1f2937);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--trends-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-primary, #fff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--trends-primary);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .trends-nav {
        display: none;
    }

    .trends-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .trends-hero {
        padding: 2.5rem 0;
    }

    .trends-hero h1 {
        font-size: 1.75rem;
    }

    .trend-categories {
        grid-template-columns: 1fr;
    }

    .trend-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

[data-theme="dark"] .trend-category-card,
[data-theme="dark"] .trend-stat-card,
[data-theme="dark"] .trend-chart-container,
[data-theme="dark"] .trend-related,
[data-theme="dark"] .trend-list-item,
[data-theme="dark"] .trend-content-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .trends-header {
    background: rgba(30, 41, 59, 0.95);
}

[data-theme="dark"] .trends-footer {
    background: var(--bg-secondary);
}
