/* community_hub.css */

.hub-container {
    background-color: #141414; /* Match the site's dark theme */
}

/* Anime/manga dokuları ve neon başlık */
.anime-bg {
    position: relative;
    isolation: isolate;
}

.anime-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(120deg, rgba(229,9,20,0.05), transparent 40%),
        linear-gradient(300deg, rgba(229,9,20,0.05), transparent 40%);
    opacity: 0.7;
}

.neon-title {
    text-shadow:
        0 0 6px rgba(229, 9, 20, 0.6),
        0 0 16px rgba(229, 9, 20, 0.35),
        0 0 32px rgba(229, 9, 20, 0.2);
}

.hub-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid #e50914; /* Primary color accent */
}

/* Fallback hero (info.image_url yoksa) */
.hub-hero.hub-hero-fallback {
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0.9) 100%),
        linear-gradient(135deg, #1c1c1c 0%, #141414 100%);
}

.hub-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(20, 20, 20, 1) 10%,
        rgba(20, 20, 20, 0.3) 70%,
        rgba(20, 20, 20, 0) 100%
    );
    display: flex;
    align-items: flex-end; /* Align content to the bottom */
    justify-content: center;
    padding-bottom: 4rem;
}

/* Yıldız/parıltı efekti (nazik anime hissi) */
.hub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.10) 0, rgba(255,255,255,0.10) 2px, transparent 2px),
        radial-gradient(1.5px 1.5px at 60% 40%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1.5px, transparent 1.5px),
        radial-gradient(1.2px 1.2px at 85% 70%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
    opacity: 0.4;
    animation: hubTwinkle 6s ease-in-out infinite alternate;
}

@keyframes hubTwinkle {
    0% { opacity: 0.25; }
    50% { opacity: 0.45; }
    100% { opacity: 0.3; }
}

.hub-hero .display-3 {
    color: #ffffff;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.hub-content-wrapper {
    margin-top: -80px; /* Pull the content card up over the hero image */
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

.hub-content-card {
    background-color: #1c1c1c; /* Lighter dark shade for the card */
    border-radius: 16px; /* Apple-like rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Yumuşak vurgu kenarlık */
.hub-content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(229,9,20,0.3), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hub-content-card .card-body {
    padding: 2.5rem 3rem;
    text-align: center;
}

/* CKEditor content needs to match the theme */
.hub-content-card .ck-content {
    color: #f5f5f5;
    line-height: 1.8;
}

.hub-content-card .ck-content h1,
.hub-content-card .ck-content h2,
.hub-content-card .ck-content h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hub-content-card .ck-content a {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
}

.hub-content-card .ck-content a:hover {
    text-decoration: underline;
}

/* Feature Cards (News & Events) */
.hub-feature-card {
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hub-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(229, 9, 20, 0.35);
}

.manga-card {
    position: relative;
    overflow: hidden;
}

.manga-card::before {
    /* hafif raster/halftone dokusu */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12px 12px, rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
}

.hub-feature-card .card-body {
    color: #a0a0a0;
}

.hub-feature-card .card-title {
    color: #f5f5f5;
    font-weight: 600;
}

.hub-feature-card i {
    color: #e50914;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f5;
}

.btn-outline-light:hover {
    background-color: #e50914;
    border-color: #e50914;
    color: #ffffff;
}

/* Son aktiviteler listesi – daha topluluk hissi için sol vurgu şeridi */
.recent-activity-list .list-group-item {
    position: relative;
    overflow: hidden;
}

.recent-activity-list .list-group-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(229,9,20,0.9), rgba(229,9,20,0.3));
    opacity: 0.7;
}

.recent-activity-list .list-group-item:hover {
    background-color: rgba(229, 9, 20, 0.08) !important;
}

.anime-list .list-group-item {
    position: relative;
}

.anime-list .list-group-item::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e50914;
    box-shadow: 0 0 8px rgba(229,9,20,0.6);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hub Hero Mobile */
    .hub-hero {
        height: 40vh;
        min-height: 300px;
    }

    .hub-hero-overlay {
        padding-bottom: 2rem;
        text-align: center;
    }

    .hub-hero .display-3 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    /* Hub Content Mobile */
    .hub-content-wrapper {
        margin-top: -40px;
        padding-bottom: 2rem;
    }

    .hub-content-card {
        border-radius: 12px;
        margin: 0 1rem;
    }

    .hub-content-card .card-body {
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    /* CKEditor Content Mobile */
    .hub-content-card .ck-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hub-content-card .ck-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hub-content-card .ck-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .hub-content-card .ck-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Feature Cards Mobile */
    .hub-feature-card {
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .hub-feature-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .hub-feature-card .card-body {
        padding: 1.25rem;
    }

    .hub-feature-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .hub-feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Buttons Mobile */
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
        border-radius: 10px;
        font-weight: 600;
    }

    /* Container Mobile */
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 576px) {
    /* Hub Hero Extra Small */
    .hub-hero {
        height: 35vh;
        min-height: 250px;
    }

    .hub-hero-overlay {
        padding-bottom: 1.5rem;
    }

    .hub-hero .display-3 {
        font-size: 1.75rem;
        padding: 0 0.75rem;
    }

    /* Hub Content Extra Small */
    .hub-content-wrapper {
        margin-top: -30px;
        padding-bottom: 1.5rem;
    }

    .hub-content-card {
        border-radius: 10px;
        margin: 0 0.75rem;
    }

    .hub-content-card .card-body {
        padding: 1.25rem 1rem;
        text-align: center;
    }

    /* CKEditor Content Extra Small */
    .hub-content-card .ck-content {
        font-size: 0.85rem;
    }

    .hub-content-card .ck-content h1 {
        font-size: 1.3rem;
    }

    .hub-content-card .ck-content h2 {
        font-size: 1.15rem;
    }

    .hub-content-card .ck-content h3 {
        font-size: 1rem;
    }

    /* Feature Cards Extra Small */
    .hub-feature-card {
        border-radius: 10px;
        margin-bottom: 1.25rem;
    }

    .hub-feature-card .card-body {
        padding: 1rem;
    }

    .hub-feature-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hub-feature-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    /* Buttons Extra Small */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Container Extra Small */
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .hub-feature-card {
        touch-action: manipulation;
        transition: transform 0.2s ease;
    }

    .hub-feature-card:active {
        transform: scale(0.98);
    }

    /* Remove hover effects for touch devices */
    .hub-feature-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hub-hero {
        height: 50vh;
        min-height: 200px;
    }

    .hub-hero-overlay {
        padding-bottom: 1rem;
    }

    .hub-hero .display-3 {
        font-size: 1.75rem;
    }

    .hub-content-wrapper {
        margin-top: -20px;
    }

    /* Feature cards in landscape */
    .row.g-4 {
        margin-top: 1rem;
    }

    .hub-feature-card {
        margin-bottom: 1rem;
    }
}
