/*
 * SECTIONS.CSS - Latest Wire, Reviews, Enterprise Sections
 * Techo Theme - NexusByte Design
 */

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    position: relative;
    padding-left: 20px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ========================================
   THE LATEST WIRE
   ======================================== */
.section-wire {
    margin-top: 50px;
}

.wire-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.wire-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-height: 200px;
}

.wire-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wire-img {
    width: 45%;
    position: relative;
    overflow: hidden;
    background: var(--gradient-card);
}

.wire-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wire-body {
    width: 55%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wire-body h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.wire-body h3 a {
    color: var(--text-main);
}

.wire-body h3 a:hover {
    color: var(--primary);
}

.meta-xs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.meta-xs img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   CONTENT & SIDEBAR SPLIT
   ======================================== */
.content-sidebar-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.feed-item {
    display: flex;
    gap: 25px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    transition: 0.3s;
}

.feed-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.feed-thumb {
    width: 200px;
    min-width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gradient-card);
}

.feed-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.feed-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.feed-info h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.feed-info h3 a {
    color: var(--text-main);
}

.excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.meta-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

.meta-inline img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.time-ago {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   GADGET REVIEWS SPOTLIGHT
   ======================================== */
.section-reviews {
    margin-top: 60px;
}

.reviews-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.review-score-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-img-box {
    height: 200px;
    background: linear-gradient(180deg, #1e1e45 0%, #13132b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img-box img {
    max-height: 160px;
    object-fit: contain;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a3a, #0d0d20);
}

.review-body {
    padding: 20px;
}

.review-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.review-body h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.pros-cons {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.pros-cons span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pros-cons .pro i {
    color: #10b981;
}

.pros-cons .con i {
    color: #ef4444;
}

.btn-review {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-review:hover {
    box-shadow: 0 5px 25px rgba(59, 130, 246, 0.4);
}

/* ========================================
   ENTERPRISE IT DEEP DIVE
   ======================================== */
.section-enterprise {
    margin-top: 60px;
    margin-bottom: 60px;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.enterprise-card {
    background: var(--bg-card);
    display: flex;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: 0.3s;
}

.enterprise-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.ent-img {
    width: 130px;
    min-width: 130px;
    background: var(--gradient-card);
    overflow: hidden;
}

.ent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ent-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ent-content h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ent-content .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* ========================================
   SIDEBAR POSITION VARIATIONS
   ======================================== */
.content-sidebar-split.sidebar-left {
    grid-template-columns: 1fr 2fr;
}

.content-sidebar-split.no-sidebar {
    grid-template-columns: 1fr;
}

.content-sidebar-split.no-sidebar .content-col {
    max-width: 900px;
    margin: 0 auto;
}

/* Content column without sidebar */
.content-col {
    min-width: 0;
}

/* ========================================
   CAROUSEL STYLES
   ======================================== */
.wire-grid,
.reviews-row {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
    overflow: visible;
}

.section-wire,
.section-reviews {
    overflow: hidden;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Prevent cards from shrinking */
.wire-card,
.review-card {
    flex-shrink: 0;
}
