/**
 * Inspiron Archives - Premium Professional Styles
 * 
 * Modern, elegant, professional blog styling
 * Inspired by Medium, TechCrunch, and premium publications
 * Color scheme: #65bb56 (green) and sophisticated grays
 * 
 * @package Inspiron Archives
 */

/* ==========================================================================
   Typography & Base
   ========================================================================== */

.iar-category-archive,
.iar-single-post {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

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

.iar-content-wrapper {
    padding: 80px 0;
    background: #fafafa;
}

/* ==========================================================================
   Banner Section (EXACTLY like blog-banner.html)
   ========================================================================== */

.iar-page-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 50%, #f1f8f4 100%);
    padding: 80px 20px;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.iar-page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(101, 187, 86, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(101, 187, 86, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.iar-banner-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.iar-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #65bb56;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.iar-banner-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.iar-banner-breadcrumb a {
    color: #65bb56;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.iar-banner-breadcrumb a:hover {
    color: #4a9940;
}

.iar-banner-breadcrumb span {
    color: #999;
}

.iar-banner-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.iar-banner-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(101, 187, 86, 0.1);
    pointer-events: none;
}

.iar-banner-decoration-1 {
    top: -100px;
    left: -100px;
}

.iar-banner-decoration-2 {
    bottom: -100px;
    right: -100px;
}

/* Single Post Meta in Banner */
.iar-single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.iar-single-post-meta .iar-meta-date,
.iar-single-post-meta .iar-meta-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #555;
}

.iar-single-post-meta .iar-meta-icon {
    stroke: #65bb56;
}

/* ==========================================================================
   Main Layout Grid (Premium)
   ========================================================================== */

.iar-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .iar-layout-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ==========================================================================
   Premium Posts Grid
   ========================================================================== */

.iar-posts-area {
    width: 100%;
}

.iar-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Single column for premium magazine-style layout */
@media (min-width: 768px) {
    .iar-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ==========================================================================
   Post Card (Medium-sized, No Hover Animation)
   ========================================================================== */

.iar-post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e8e8e8;
}

/* NO hover animation as requested */
.iar-post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #e8e8e8;
}

/* ==========================================================================
   Post Thumbnail
   ========================================================================== */

.iar-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

.iar-post-thumbnail a {
    display: block;
    height: 100%;
}

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

/* NO image zoom on hover */
.iar-post-card:hover .iar-post-image {
    transform: scale(1);
}

.iar-placeholder {
    opacity: 0.5;
    filter: grayscale(20%);
}

/* ==========================================================================
   Post Content
   ========================================================================== */

.iar-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.iar-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.iar-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.iar-post-title a:hover {
    color: #65bb56;
}

/* ==========================================================================
   Post Meta
   ========================================================================== */

.iar-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    color: #888;
    font-weight: 500;
}

.iar-meta-date,
.iar-meta-author {
    display: flex;
    align-items: center;
    gap: 7px;
}

.iar-meta-icon {
    flex-shrink: 0;
    stroke: #65bb56;
    opacity: 0.8;
}

/* ==========================================================================
   Post Excerpt
   ========================================================================== */

.iar-post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 1rem;
}

/* ==========================================================================
   Read More Link
   ========================================================================== */

.iar-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #65bb56;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.iar-read-more:hover {
    gap: 14px;
    color: #4a9940;
}

/* ==========================================================================
   Premium Pagination
   ========================================================================== */

.iar-pagination {
    margin: 80px 0 0 0;
}

.iar-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iar-pagination li {
    margin: 0;
}

.iar-pagination a,
.iar-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.iar-pagination a {
    background: #ffffff;
    color: #555;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.iar-pagination a:hover {
    background: #65bb56;
    color: #ffffff;
    border-color: #65bb56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(101, 187, 86, 0.25);
}

.iar-pagination .current {
    background: #65bb56;
    color: #ffffff;
    border: 2px solid #65bb56;
    box-shadow: 0 4px 15px rgba(101, 187, 86, 0.3);
}

.iar-pagination .dots {
    background: transparent;
    color: #ccc;
    border: none;
    cursor: default;
    box-shadow: none;
}

/* ==========================================================================
   Premium Sidebar
   ========================================================================== */

.iar-sidebar {
    position: sticky;
    top: 30px;
}

.iar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.iar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.iar-widget-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #65bb56;
    letter-spacing: -0.01em;
}

.iar-widget-content {
    font-size: 0.95rem;
}

.iar-widget-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Search Form */
.iar-search-form {
    display: flex;
    gap: 10px;
}

.iar-search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.iar-search-input:focus {
    outline: none;
    border-color: #65bb56;
    box-shadow: 0 0 0 4px rgba(101, 187, 86, 0.1);
}

.iar-search-button {
    padding: 14px 20px;
    background: #65bb56;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(101, 187, 86, 0.3);
}

.iar-search-button:hover {
    background: #4a9940;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 187, 86, 0.4);
}

.iar-search-button svg {
    stroke: #ffffff;
}

/* Recent Posts List */
.iar-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iar-recent-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.iar-recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.iar-recent-posts-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.iar-recent-posts-list a:hover {
    color: #65bb56;
}

.iar-post-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Recent Comments List */
.iar-recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iar-recent-comments-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.iar-recent-comments-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.iar-comment-author {
    font-weight: 700;
    color: #65bb56;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.iar-recent-comments-list a {
    color: #555;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.9rem;
}

.iar-recent-comments-list a:hover {
    color: #65bb56;
}

/* Archives List */
.iar-archives-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iar-archives-list li {
    margin-bottom: 12px;
}

.iar-archives-list a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    padding: 8px 0;
}

.iar-archives-list a:hover {
    color: #65bb56;
}

/* Categories List */
.iar-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iar-categories-list li {
    margin-bottom: 12px;
}

.iar-categories-list a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    padding: 8px 0;
}

.iar-categories-list a:hover {
    color: #65bb56;
}

.iar-categories-list .count {
    background: #65bb56;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
}

/* ==========================================================================
   Premium Single Post Styles
   ========================================================================== */

/* Single Post Title (No Banner) */
.iar-single-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 40px 0 20px 0;
    letter-spacing: -0.02em;
}

/* Single Post Meta (Author, Date, Category) */
.iar-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.iar-single-meta .iar-meta-author,
.iar-single-meta .iar-meta-date,
.iar-single-meta .iar-meta-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.iar-single-meta .iar-meta-icon {
    stroke: #65bb56;
    flex-shrink: 0;
}

.iar-single-meta .iar-meta-category a {
    color: #65bb56;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.iar-single-meta .iar-meta-category a:hover {
    color: #4a9940;
}

/* Single Post Content Area */
.iar-post-content-area {
    width: 100%;
}

.iar-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.iar-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.iar-post-content-wrapper {
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 850px;
}

.iar-post-content-wrapper p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #333;
}

.iar-post-content-wrapper h1,
.iar-post-content-wrapper h2,
.iar-post-content-wrapper h3,
.iar-post-content-wrapper h4 {
    color: #1a1a1a;
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.iar-post-content-wrapper h2 {
    font-size: 2.25rem;
    border-bottom: 4px solid #65bb56;
    padding-bottom: 16px;
    margin-top: 2.5em;
}

.iar-post-content-wrapper h3 {
    font-size: 1.75rem;
    color: #2a2a2a;
}

.iar-post-content-wrapper a {
    color: #65bb56;
    text-decoration: none;
    border-bottom: 2px solid rgba(101, 187, 86, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.iar-post-content-wrapper a:hover {
    color: #4a9940;
    border-bottom-color: #4a9940;
}

.iar-post-content-wrapper ul,
.iar-post-content-wrapper ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.iar-post-content-wrapper li {
    margin-bottom: 0.75em;
    line-height: 1.8;
}

.iar-post-content-wrapper blockquote {
    border-left: 4px solid #65bb56;
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
}

.iar-page-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.iar-post-tags {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.iar-tags-title {
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.iar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.iar-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #65bb56 0%, #4a9940 100%);
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(101, 187, 86, 0.2);
}

.iar-tag:hover {
    background: linear-gradient(135deg, #4a9940 0%, #3a7d30 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(101, 187, 86, 0.4);
}

.iar-cat-count {
    display: inline-block;
    background: #65bb56;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}


/* ==========================================================================
   No Posts Message
   ========================================================================== */

.iar-no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.iar-no-posts p {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 992px) {
    .iar-sidebar {
        position: static;
    }

    .iar-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .iar-page-banner {
        padding: 70px 20px;
        min-height: 360px;
    }

    .iar-banner-title {
        font-size: 2.5rem;
    }

    .iar-banner-description {
        font-size: 1.1rem;
    }

    .iar-content-wrapper {
        padding: 50px 0;
    }

    .iar-container {
        padding: 0 20px;
    }

    .iar-post-title {
        font-size: 1.35rem;
    }

    .iar-post-content-wrapper {
        padding: 40px 24px;
    }

    .iar-post-content-wrapper p {
        font-size: 1.05rem;
    }

    .iar-pagination {
        margin: 60px 0 0 0;
    }

    .iar-pagination a,
    .iar-pagination span {
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .iar-page-banner {
        padding: 50px 15px;
    }

    .iar-banner-title {
        font-size: 2rem;
    }

    .iar-post-content {
        padding: 24px;
    }

    .iar-widget {
        padding: 24px;
    }

    .iar-pagination ul {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Premium Enhancements
   ========================================================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #65bb56;
    color: #ffffff;
}

::-moz-selection {
    background: #65bb56;
    color: #ffffff;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #65bb56;
    outline-offset: 2px;
}