/*
Theme Name: Techy Voro
Theme URI: https://techyvoro.com
Author: Techy Voro
Author URI: https://techyvoro.com
Description: A premium technology blog theme with modern design, magazine-style layout, and full WordPress functionality. Perfect for tech blogs, magazines, and content-driven websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techy-voro
Tags: blog, magazine, news, two-columns, right-sidebar, custom-background, featured-images, theme-options, threaded-comments, translation-ready
*/

/* =Reset and Base Styles
-------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* =Typography
-------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* =Container
-------------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* =Header
-------------------------------------------------------------- */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -1px;
}

.site-logo:hover {
    color: #007bff;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-navigation ul li a:hover {
    color: #007bff;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.main-navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-navigation ul li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li ul li {
    width: 100%;
}

.main-navigation ul li ul li a {
    padding: 12px 20px;
    display: block;
}

.main-navigation ul li ul li a::after {
    display: none;
}

.main-navigation ul li ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* =Hero Section
-------------------------------------------------------------- */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    animation: fadeInUp 0.8s ease;
}

.hero-section .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-2px);
}

/* =Featured Articles
-------------------------------------------------------------- */

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.featured-section {
    padding: 60px 0;
    background: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* =Article Cards
-------------------------------------------------------------- */

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.article-title a {
    color: #1a1a2e;
}

.article-title a:hover {
    color: #007bff;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more {
    color: #007bff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* =Category Sections
-------------------------------------------------------------- */

.category-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.category-header h2 {
    margin-bottom: 0;
}

.view-all {
    color: #007bff;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* =Single Article
-------------------------------------------------------------- */

.single-article {
    padding: 40px 0;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-main {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.article-breadcrumb a {
    color: #666;
}

.article-breadcrumb a:hover {
    color: #007bff;
}

.article-header-top {
    margin-bottom: 30px;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title-large {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta-full {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.toc-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #666;
    font-size: 0.95rem;
}

.toc-list a:hover {
    color: #007bff;
}

.toc-list .toc-h3 {
    padding-left: 20px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    border-radius: 8px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body img {
    border-radius: 8px;
    margin: 20px 0;
}

.article-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-body pre {
    background: #1a1a2e;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body th,
.article-body td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-body th {
    background: #f8f9fa;
    font-weight: 600;
}

/* =Comments Section
-------------------------------------------------------------- */

.comments-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
}

.comment-content {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    font-weight: 600;
}

.comment-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* =Sidebar
-------------------------------------------------------------- */

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a2e;
}

/* Author Box */
.author-box {
    text-align: center;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 4px solid #667eea;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.author-position {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.author-bio {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.author-social a {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: #667eea;
    color: #fff;
}

/* Recent Posts Widget */
.recent-posts-widget .recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-widget .recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: #1a1a2e;
}

.recent-post-info h4 a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
}

/* =Footer
-------------------------------------------------------------- */

.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-about .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-about p {
    color: #aaa;
    line-height: 1.8;
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
}

.footer-links ul li,
.footer-categories ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-categories ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-categories ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* =Pages
-------------------------------------------------------------- */

.page-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

/* =Contact Form
-------------------------------------------------------------- */

.contact-form {
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

/* =Search
-------------------------------------------------------------- */

.search-section {
    padding: 60px 0;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-results h2 {
    margin-bottom: 30px;
}

/* =404 Page
-------------------------------------------------------------- */

.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 8rem;
    color: #667eea;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-404 p {
    color: #666;
    margin-bottom: 30px;
}

/* =Pagination
-------------------------------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* =Animations
-------------------------------------------------------------- */

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* =Responsive Design
-------------------------------------------------------------- */

@media (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-navigation ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .tagline {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .article-main {
        padding: 25px;
    }

    .article-title-large {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        margin-bottom: 20px;
    }
}
