/*
Theme Name: Nordic Tech
Description: A clean, minimalist WordPress theme inspired by Scandinavian design principles. Features a warm, natural color palette and focuses on typography and clean layouts.
Author: Your Name
Version: 1.0
Tags: blog, portfolio, clean, minimal, scandinavian, responsive
*/

/* ========================================
   CSS RESET & BASE STYLES
======================================== */

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

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
======================================== */

:root {
    --primary-color: #2c2c2c;
    --accent-color: #9f8e7f;
    --wood-warm: #a8a591;
    --wood-light: #d0c0af;
    --warm-beige: #c4bab2;
    --light-beige: #d9d7d0;
    --sage-warm: #ceb89f;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --background: #fefefe;
    --background-light: #f7f5f3;
    --background-warm: #faf8f5;
    --border-light: #e8e6e3;
    --shadow: 0 2px 10px rgba(44,44,44,0.08);
    --shadow-hover: 0 8px 25px rgba(44,44,44,0.12);
}

/* ========================================
   TYPOGRAPHY & BASE ELEMENTS
======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ========================================
   WORDPRESS UTILITY CLASSES
======================================== */

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    left: -9999px;
    position: absolute;
    top: -9999px;
}

.skip-link:focus {
    clip: auto;
    height: auto;
    left: 6px;
    top: 7px;
    width: auto;
    z-index: 999999;
}

/* WordPress alignment classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* ========================================
   HEADER STYLES
======================================== */

.site-header {
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--wood-warm) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo,
.logo h1,
.logo p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.logo a:hover {
    color: var(--accent-color);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Current menu item */
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: var(--accent-color);
}

.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
    width: 100%;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input[type="search"],
.search-box .search-field {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--warm-beige);
    border-radius: 25px;
    background: var(--light-beige);
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 200px;
}

.search-box input[type="search"]:focus,
.search-box .search-field:focus {
    border-color: var(--accent-color);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(159, 142, 127, 0.1);
}

.search-box .search-submit {
    display: none;
}

/* ========================================
   MAIN CONTENT LAYOUT
======================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.content-area {
    flex: 1;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    text-align: center;
    padding: 4rem 0;
    margin-top: 40px;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--warm-beige) 100%);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--wood-light);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   POST STYLES
======================================== */

/* Post Loop */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card,
article {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--light-beige);
    margin-bottom: 2rem;
}

.post-card:hover,
article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card,
article {
    animation: fadeInUp 0.6s ease-out both;
}

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

.post-image,
.post-thumbnail {
    height: 400px;
    background: linear-gradient(45deg, var(--wood-light), var(--sage-warm));
    position: relative;
    overflow: hidden;
}

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

.post-image::after,
.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44,44,44,0.1);
}

.post-content,
.entry-content {
    padding: 1.5rem;
}

.post-meta,
.entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-title,
.entry-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-title a,
.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-title a:hover,
.entry-title a:hover {
    color: var(--accent-color);
}

.post-excerpt,
.entry-summary {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more,
.more-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover,
.more-link:hover {
    color: var(--primary-color);
}

/* Post Tags */
.post-tags,
.entry-footer {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag,
.tag-links a {
    padding: 0.25rem 0.75rem;
    background: var(--sage-warm);
    border: 1px solid var(--wood-light);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover,
.tag-links a:hover {
    background: var(--wood-light);
    color: var(--text-dark);
}

/* Popular Tags Widget - Tag Cloud Style */
.tags-widget  .widget-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.tags-widget  .widget-list li {
    border: none;
    padding: 0;
    margin: 0;
    flex: none;
}

.tags-widget  .widget-list li a {
    padding: 0.4rem 0.8rem;
    background: var(--light-beige);
    border: 1px solid var(--warm-beige);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.tags-widget  .widget-list li a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(44,44,44,0.1);
}
/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tag,
.cat-links a {
    padding: 0.5rem 1rem;
    background: var(--sage-warm);
    border: 1px solid var(--wood-light);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-tag:hover,
.cat-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-tag.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow);
}

/* ========================================
   SINGLE POST STYLES
======================================== */

.single .entry-header {
    text-align: center;
    padding: 2rem 0;
    background: var(--background-light);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single .entry-meta {
    justify-content: center;
    font-size: 1rem;
}

.single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ========================================
   PAGINATION
======================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--light-beige);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--accent-color);
    color: white;
}

.pagination .current,
.nav-links .current {
    background: var(--accent-color);
    color: white;
}

/* ========================================
   SIDEBAR & WIDGETS
======================================== */

.sidebar {
    background: var(--background);
}

.widget {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-beige);
}

.widget h3,
.widget .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.widget-list,
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li,
.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-beige);
    margin: 0;
}

.widget-list li:last-child,
.widget ul li:last-child {
    border-bottom: none;
}

.widget-list a,
.widget ul a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.widget-list a:hover,
.widget ul a:hover {
    color: var(--accent-color);
}

/* About Widget */
.about-section {
    text-align: center;
    padding: 2rem;
    background: var(--light-beige);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--wood-warm));
    margin: 0 auto 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   COMMENTS
======================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-beige);
}

.comments-title {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.comment {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.reply {
    text-align: right;
    margin-top: 1rem;
}

.comment-reply-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    color: var(--primary-color);
}

/* Comment Form */
.comment-respond {
    background: var(--background);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--light-beige);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-beige);
    border-radius: 8px;
    background: var(--background);
    font-family: inherit;
    margin-bottom: 1rem;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(159, 142, 127, 0.1);
}

.form-submit {
    text-align: right;
}

.submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.submit:hover {
    background: var(--primary-color);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
}

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

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--sage-warm);
}

.footer-section p {
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--sage-warm);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

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

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

/* ========================================
   FORMS
======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    padding: 0.75rem;
    border: 1px solid var(--light-beige);
    border-radius: 8px;
    background: var(--background);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(159, 142, 127, 0.1);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: var(--primary-color);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-header nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links {
        display: none;
    }

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

    .categories {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .logo-area {
        gap: 0.75rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo,
    .logo h1,
    .logo p {
        font-size: 1.3rem;
    }

    .logo-tagline {
        font-size: 0.7rem;
    }

    .search-box input[type="search"],
    .search-box .search-field {
        width: 100%;
        max-width: 300px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .single .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .widget {
        padding: 1rem;
    }

    .post-content,
    .entry-content {
        padding: 1rem;
    }

    .comment-respond {
        padding: 1rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .nav-links,
    .search-box,
    .comments-area {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}