/* Modern Minimalist Black & White Native UI Stylesheet */

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

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #4a4a4a;
    --light-gray: #f0f0f0;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --text-primary: #000000;
    --text-secondary: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    letter-spacing: -0.3px;
}

/* Header Styles */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

nav a:hover {
    color: var(--text-secondary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: var(--white);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--primary-black);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.article-card-header {
    background: var(--white);
    padding: 2rem 1.5rem 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.article-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-black);
}

.article-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 1rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Article Page Styles */
.article-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.article-image-container {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.article-header h1 {
    font-size: 2.8rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.article-meta span::before {
    content: '•';
    margin-right: 0.5rem;
}

.article-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

.article-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin: 2.5rem 0 1rem 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary-black);
    margin: 2rem 0 0.8rem 0;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    color: var(--text-primary);
}

/* AdSense Placeholder Styles */
.ad-space {
    background: var(--light-gray);
    border: 1px dashed var(--border-gray);
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.ad-space-728 {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space-300 {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space-970 {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--border-gray);
}

.sidebar h3 {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar a:hover {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--white);
    color: var(--text-primary);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-gray);
}

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

.footer-section h4 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-black);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--primary-black);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-black);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .article-header h1 {
        font-size: 1.8rem;
    }

    .ad-space-728,
    .ad-space-970 {
        display: none;
    }

    .ad-space-300 {
        margin: 1rem auto;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.p-2 {
    padding: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--primary-black);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: var(--light-gray);
    color: var(--primary-black);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--border-gray);
}

table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-gray);
}

table tr:hover {
    background: var(--light-gray);
}

/* Code Block Styles */
code {
    background: var(--light-gray);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-black);
}

pre {
    background: var(--secondary-black);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Blockquote Styles */
blockquote {
    border-left: 4px solid var(--primary-black);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.05rem;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-gray);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-box input {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-black);
}

.search-box button {
    padding: 0.9rem 1.8rem;
    background: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: var(--dark-gray);
}

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

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-black);
    color: var(--white);
}

/* Smooth Transitions */
a, button {
    transition: all 0.2s ease;
}
