/*
 * SIDEBAR.CSS - Sidebar & Widget Styles
 * Techo Theme - NexusByte Design
 */

/* ========================================
   SIDEBAR CONTAINER
   ======================================== */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ========================================
   WIDGET CARD BASE
   ======================================== */
.widget-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   NEWSLETTER WIDGET
   ======================================== */
.widget-newsletter {
    background: linear-gradient(145deg, rgba(30, 30, 80, 0.6), rgba(19, 19, 43, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.widget-newsletter::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.widget-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.widget-newsletter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ========================================
   AD WIDGET
   ======================================== */
.widget-ad {
    padding: 0;
    overflow: hidden;
}

.ad-placeholder {
    background: linear-gradient(135deg, #1e1e45, #13132b);
    padding: 40px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ad-placeholder span {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ========================================
   MOST POPULAR WIDGET
   ======================================== */
.widget-popular h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-list li:first-child {
    padding-top: 0;
}

.popular-list .count {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.pop-details {
    flex: 1;
    min-width: 0;
}

.pop-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.pop-details h4 a {
    color: var(--text-main);
}

.pop-details h4 a:hover {
    color: var(--primary);
}

.pop-details .time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pop-thumb {
    width: 70px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   WORDPRESS DEFAULT WIDGETS
   ======================================== */
.widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: var(--primary);
}