/* Modern iOS-style AI Guides Page */

:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --primary-text-color: #1d1d1f;
    --secondary-text-color: #6e6e73;
    --accent-color: #007aff;
    --separator-color: #e5e5ea;
    --search-bg-color: #e9e9eb;
}

/* Override global style to remove top navbar space in guides section */
.right-content::before {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Removed background-color from here to avoid global override */
}

.guides-container-modern {
    max-width: 1000px; /* Reduced from 1200px */
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--bg-color); /* Applied background color here instead */
}

.guides-header-modern h1 {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 1rem 0 1.5rem;
}

.search-container-modern {
    margin-bottom: 2rem;
}

.search-input-modern {
    width: 100%;
    padding: 10px 16px; /* Reduced from 12px 18px */
    font-size: 0.95rem; /* Reduced from 1rem */
    border: none;
    border-radius: 12px;
    background-color: var(--search-bg-color);
    color: var(--primary-text-color);
    outline: none;
    -webkit-appearance: none;
}

.search-input-modern::placeholder {
    color: var(--secondary-text-color);
}

#featured-guides-container {
    display: flex;
    gap: 1.25rem; /* Reduced from 1.5rem */
    margin-bottom: 2.5rem;
    justify-content: space-between;
}

.guide-card-modern {
    background-color: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--separator-color);
    flex: 1; /* Make cards share space equally */
    min-width: 0;
}

.guide-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.guide-card-image-container {
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    position: relative;
    background-color: #f0f0f0;
}

.guide-card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card-content-modern {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-card-content-modern .category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.guide-card-content-modern h3 {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.guide-card-content-modern p {
    font-size: 0.9rem; /* Reduced from 0.95rem */
    color: var(--secondary-text-color);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.list-header {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 2.5rem 0 1rem; /* Add margin-top */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--separator-color);
    /* Span across all columns in the grid */
    grid-column: 1 / -1;
}

#guides-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem; /* Reduced from 1rem */
}

#guides-list-container .guide-list-item-modern {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    border: 1px solid var(--separator-color);
    border-radius: 12px;
    transition: background-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

#guides-list-container .guide-list-item-modern:last-child {
    border: 1px solid var(--separator-color);
}

#guides-list-container a.guide-list-item-modern:hover {
    background-color: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-list-item-modern .item-image {
    width: 70px;   /* Reduced from 80px */
    height: 52px;  /* Reduced from 60px */
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.guide-list-item-modern .item-content {
    flex-grow: 1;
}

.guide-list-item-modern .item-content h3 {
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 500;
    color: var(--primary-text-color);
    margin: 0 0 4px;
}

.guide-list-item-modern .item-content p {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: var(--secondary-text-color);
    margin: 0;
}

/* === Breadcrumb Styles === */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    padding: 0 0.5rem; /* Add some padding */
}

.breadcrumb a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .breadcrumb-separator {
    margin: 0 0.5em;
    color: var(--separator-color);
}

.breadcrumb .breadcrumb-current {
    color: var(--primary-text-color);
    font-weight: 500;
}

/* === Article Detail Page Styles === */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--separator-color);
}

.article-content {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
    color: var(--primary-text-color);
}

.article-content h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 0.9rem;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}


@media (max-width: 768px) {
    .guides-header-modern h1 {
        font-size: 2rem;
    }
    #featured-guides-container {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.3rem; /* 20.8px */
    }
} 