/* 
========================================================================
   INFOTECHWORD.ORG - CORE STYLESHEET
   Modern Tech Portal Dual-Theme Design (Slate Dark & Crisp Light Mode)
========================================================================
*/

/* 1. Reset, Typography, & Dynamic Contrast CSS Tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;800;900&display=swap');

:root {
    /* DEFAULT SLATE DARK THEME TOKENS */
    --bg-base: #0a0e17;
    --bg-card: #121824;
    --bg-topbar: rgba(10, 14, 23, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-glow: rgba(59, 130, 246, 0.15);
    
    /* Global Color Highlights */
    --tech-blue: #3b82f6;
    --tech-blue-glow: rgba(59, 130, 246, 0.4);
    --success-green: #10b981;
    --success-green-glow: rgba(16, 185, 129, 0.3);
    --news-red: #ef4444;
    --news-red-glow: rgba(239, 68, 68, 0.3);
    --accent-gold: #eab308;
    --accent-gold-glow: rgba(234, 179, 8, 0.4);
    
    /* Layout Sizing & Animations */
    --font-primary: 'Inter', sans-serif;
    --font-gaming: 'Outfit', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Crisp Light Mode Overrides */
body.light-mode {
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --bg-topbar: rgba(248, 250, 252, 0.9);
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-glow: rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--tech-blue) var(--bg-base);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--tech-blue);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--tech-blue-glow);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* 2. Global Utilities & Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-glow-blue { text-shadow: 0 0 8px var(--tech-blue-glow); }
.text-glow-green { text-shadow: 0 0 8px var(--success-green-glow); }

/* Sticky Top Navigation Header */
.site-header {
    background: var(--bg-topbar);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-text {
    font-family: var(--font-gaming);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-highlight {
    color: var(--tech-blue);
    text-shadow: 0 0 10px var(--tech-blue-glow);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-family: var(--font-gaming);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.05);
}

/* Nav search box */
.nav-search-box {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    gap: 8px;
    width: 200px;
    transition: width var(--transition-speed);
}

.nav-search-box:focus-within {
    width: 250px;
    border-color: var(--tech-blue);
    box-shadow: 0 0 10px rgba(59,130,246,0.15);
}

.nav-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    width: 100%;
}

.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dynamic Light/Dark Toggle icon button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
}

.theme-toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

/* Horizontal Scrolling Breaking News Ticker */
.breaking-news-bar {
    background: rgba(239, 68, 68, 0.08);
    border-bottom: 1px solid var(--border-color);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.breaking-label {
    background: var(--news-red);
    color: #fff;
    font-family: var(--font-gaming);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding-left: 20px;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.ticker-item:hover {
    color: var(--tech-blue);
}

@keyframes marquee {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Modern Card Layouts */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 35px var(--shadow-glow), 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tech-blue), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease-in-out;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* Premium Buttons */
.btn {
    font-family: var(--font-gaming);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-blue {
    background: var(--tech-blue);
    color: #fff;
    box-shadow: 0 0 15px var(--tech-blue-glow);
}

.btn-blue:hover {
    background: #5897ff;
    box-shadow: 0 0 25px #5897ff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--tech-blue);
    border: 1px solid var(--tech-blue);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #fff;
    border-color: var(--tech-blue);
    box-shadow: 0 0 15px var(--tech-blue-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 10px;
    border-radius: 6px;
}

/* Animation utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

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

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-container { padding: 0 15px; }
    .main-nav { display: none; }
    .nav-search-box { display: none; }
}

/* --- HOME PAGE WIDGETS --- */

/* Breaking Slider Hero */
.hero-slider-box {
    height: 420px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-bottom: 35px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.slide-tag {
    background: var(--tech-blue);
    color: #fff;
    font-family: var(--font-gaming);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.slide-title {
    font-family: var(--font-gaming);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.slide-meta {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    gap: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    right: 50px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider-dot.active {
    background: var(--tech-blue);
    box-shadow: 0 0 8px var(--tech-blue);
}

/* Article Cards Styling */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.art-img-box {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid var(--border-color);
}

.art-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.article-card:hover .art-img-box img {
    transform: scale(1.05);
}

.art-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.art-bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-speed);
}

.art-bookmark-btn:hover, .art-bookmark-btn.active {
    color: var(--tech-blue);
    background: #fff;
}

.art-title {
    font-family: var(--font-gaming);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-main);
}

.art-title:hover {
    color: var(--tech-blue);
}

.art-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.art-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

/* Brand AD slots mock placements */
.ad-slot-banner {
    background: rgba(255,255,255,0.01);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* --- REVIEW SYSTEM PAGE DETAILS --- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13.5px;
}

.specs-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    width: 150px;
}

.specs-table td:last-child {
    color: var(--text-main);
}

/* Pros / Cons grids */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.pros-panel {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 20px;
}

.cons-panel {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    padding: 20px;
}

.pro-con-title {
    font-family: var(--font-gaming);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-con-list {
    list-style: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pro-con-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pro-con-list li i {
    margin-top: 3px;
}

/* Rating Stars Sheet */
.scorecard-bar-row {
    margin-bottom: 12px;
}

.scorecard-bar-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.scorecard-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.scorecard-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-blue), var(--success-green));
    width: 0%;
    transition: width 1s ease-in-out;
}

/* --- COMPARISON TOOL --- */
.compare-select-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.compare-selector {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.compare-selector:focus {
    outline: none;
    border-color: var(--tech-blue);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th {
    background: rgba(0,0,0,0.1);
    font-family: var(--font-gaming);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.matrix-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 13.5px;
}

.matrix-table td:first-child {
    font-weight: 700;
    text-align: left;
    color: var(--text-muted);
}

.winner-badge-box {
    background: var(--success-green-glow);
    border: 1px solid var(--success-green);
    color: var(--success-green);
    font-size: 10px;
    font-family: var(--font-gaming);
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* --- USER DASHBOARD --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.dash-sidebar {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dash-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-gaming);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition-speed);
}

.dash-sidebar-item:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
}

.dash-sidebar-item.active {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--tech-blue);
    color: var(--text-main);
}

/* Comments section */
.comments-container {
    margin-top: 30px;
}

.comment-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.comment-input-area {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-main);
    font-size: 13.5px;
    resize: none;
    height: 80px;
}

.comment-input-area:focus {
    outline: none;
    border-color: var(--tech-blue);
}

.comment-row {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.comment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-name {
    font-family: var(--font-gaming);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
}

.comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    margin-top: 5px;
}

/* Modals overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--tech-blue);
    box-shadow: 0 0 35px var(--tech-blue-glow);
    border-radius: var(--border-radius);
    padding: 25px;
    transform: scale(0.92);
    transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--tech-blue);
}

/* SEO tag block outputs */
.seo-output-box {
    background: #000;
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px dashed rgba(16, 185, 129, 0.2);
}
