/*
Theme Name: ThaiMarket Realty Brief - Ultra Minimal Portal
Author: PBN Creative
Description: Ultra-clean, modern minimal design. Focus on content, white space, and bold typography.
Version: 1.0.0
*/

:root {
    /* ThaiMarket Minimal Palette */
    --primary: #ff6b35;      /* Vibrant Orange */
    --secondary: #1a1a2e;    /* Deep Navy */
    --accent: #00d9ff;       /* Cyan Accent */
    --bg-main: #ffffff;
    --bg-subtle: #fafafa;
    --text-main: #0a0a0a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    
    --container-width: 1320px;
    --content-width: 780px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 88px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header - Ultra Minimal */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 4rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

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

/* Hero - Massive & Clean */
.hero-minimal {
    padding: 12rem 0 10rem;
    background: var(--bg-main);
}

.hero-minimal h1 {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
    max-width: 1100px;
}

.hero-minimal h1 span {
    color: var(--primary);
}

.hero-minimal p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 5rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--text-main);
    color: #fff;
    padding: 1.5rem 4rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
}

.hero-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Emoji Floating - Minimal */
.hero-emoji-minimal {
    position: absolute;
    top: 15%;
    right: 10%;
    font-size: 8rem;
    opacity: 0.15;
    animation: float-slow 8s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Sections - Spacious */
.section-clean {
    padding: 10rem 0;
}

.section-title-minimal {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    max-width: 800px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 8rem;
    max-width: 600px;
}

/* Grid - Clean Cards */
.clean-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.clean-card {
    padding: 4rem 3rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.clean-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.clean-card-emoji {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    display: block;
}

.clean-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.clean-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Post Cards - Ultra Minimal */
.posts-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem 3rem;
}

.post-clean-card {
    transition: var(--transition);
}

.post-clean-card:hover {
    transform: translateY(-8px);
}

.post-clean-thumb {
    height: 280px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--bg-subtle);
}

.post-clean-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-clean-card:hover .post-clean-thumb img {
    transform: scale(1.05);
}

.post-clean-cat {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.post-clean-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.post-clean-link {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-clean-link:hover {
    color: var(--primary);
}

/* Single Post - Focused */
.single-clean-header {
    padding: 12rem 0 6rem;
    background: var(--bg-subtle);
    text-align: center;
}

.single-clean-cat {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.single-clean-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.1;
}

.single-clean-content {
    padding: 8rem 0;
}

.single-clean-body {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.single-clean-body h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 5rem 0 2.5rem;
    color: var(--text-main);
}

.single-clean-body p {
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* Minimal Lists */
.single-clean-body ul {
    margin: 4rem 0;
    padding: 4rem;
    background: var(--bg-subtle);
    border-left: 4px solid var(--primary);
}

.single-clean-body li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    padding-left: 2.5rem;
    position: relative;
}

.single-clean-body li:last-child {
    border-bottom: none;
}

.single-clean-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Footer - Minimal */
.site-footer-clean {
    background: var(--bg-subtle);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-clean-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8rem;
    margin-bottom: 6rem;
}

.footer-clean-logo {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.footer-clean-logo span {
    color: var(--primary);
}

.footer-clean-desc {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 450px;
}

.footer-clean-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-clean-links a {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-clean-links a:hover {
    color: var(--primary);
}

.footer-clean-contact p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-clean-bottom {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pagination - Minimal */
.pagination-container {
    margin-top: 8rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
}

.pagination-list a, .pagination-list span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-weight: 800;
}

.pagination-list a:hover, .pagination-list .is-active span {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* Mobile */
@media (max-width: 1024px) {
    .clean-grid, .posts-clean-grid, .footer-clean-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 2rem;
    }
}
