/* Community Styles */

/* Variables */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-gradient: linear-gradient(135deg, var(--primary-blue) 0%, #001a4d 100%);
}

/* Archive Header */
.community-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Single Topic Header - Premium */
.community-single-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 100px 0 120px;
    /* Extra padding bottom for overlap */
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Floating Decorative Icons */
.community-header .header-icons,
.community-single-header .header-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.header-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: floating-icon 15s infinite ease-in-out;
}

.header-icon-1 {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    animation-delay: 0s;
}

.header-icon-2 {
    top: 60%;
    left: 15%;
    font-size: 2rem;
    animation-delay: -2s;
}

.header-icon-3 {
    top: 20%;
    right: 10%;
    font-size: 4rem;
    animation-delay: -5s;
}

.header-icon-4 {
    bottom: 10%;
    right: 20%;
    font-size: 2.5rem;
    animation-delay: -8s;
}

.header-icon-5 {
    top: 50%;
    right: 40%;
    font-size: 1.5rem;
    animation-delay: -11s;
}

@keyframes floating-icon {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -30px) rotate(10deg);
    }

    66% {
        transform: translate(-10px, 20px) rotate(-10deg);
    }
}

.community-header .container,
.community-single-header .container {
    position: relative;
    z-index: 2;
}

.community-single-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 172, 27, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.community-single-header::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.line-height-1 {
    line-height: 1.2;
}

/* Cards */
.topic-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 25px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 41, 99, 0.1);
}

/* Typography */
.entry-content {
    color: #4a5568;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Comments Styling */
.comments-area {
    margin-top: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-blue);
}

/* Form Styles */
.community-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.btn-create-topic {
    width: 100%;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(5, 41, 99, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-create-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(5, 41, 99, 0.3);
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OTP Section Styles */
#otp-verify-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
}

#otp-status {
    min-height: 20px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

#guest-mobile {
    border-left: none;
}

#guest-mobile:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.form-control:read-only {
    background-color: #e9ecef;
    opacity: 0.8;
}

/* Sidebar Premium Widgets */
.sidebar-widget-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-widget-header {
    background: #052963;
    /* Dark blue from your reference */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-widget-header i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.sidebar-widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sidebar-widget-body {
    padding: 0;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list-item {
    border-bottom: 1px solid #f8fafc;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-list-item:hover {
    background: #fffbef;
    /* Light cream/yellow background from image */
    border-left-color: #fbac1b;
    /* Orange left border from image */
}

.sidebar-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none !important;
    color: #334155;
}

/* Category Specific */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #64748b;
}

.category-count {
    background: #f1f5f9;
    color: #1e293b;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
}

/* Recent Topic Specific */
.sidebar-topic-item .sidebar-link {
    padding: 18px 20px;
}

.sidebar-topic-title {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-topic-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.sidebar-topic-meta i {
    color: #fbac1b;
    /* Orange color from your reference image */
}

/* Community Category Cards */
.community-category-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(145deg, #ffffff, #fcfcfc);
}

.community-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.community-category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 41, 99, 0.05);
    /* very light primary blue */
    color: #052963;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.community-category-card:hover .community-category-icon {
    background: #052963;
    color: #ffffff;
    transform: scale(1.1);
}