/*
Theme Name: Siam Realty Guide - Premium Tropical Portal
Author: PBN Creative
Description: Elegant, premium design for Thailand real estate portal. Soft shadows, warm gradients, and sophisticated typography.
Version: 1.0.0
*/

:root {
    /* Siam Premium Palette */
    --primary: #059669;      /* Emerald Green */
    --secondary: #b45309;    /* Amber Gold */
    --accent: #0891b2;       /* Tropical Cyan */
    --bg-main: #fefefe;
    --bg-soft: #f0fdf4;
    --bg-cream: #fffbeb;
    --text-main: #1c1917;
    --text-muted: #78716c;
    --white: #ffffff;
    --border: #e7e5e4;
    
    --container-width: 1280px;
    --content-width: 820px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
    --transition: all 0.35s 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.7;
    overflow-x: hidden;
    padding-top: 84px;
}

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 2rem;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 1.3rem 3.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px -10px var(--primary);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px var(--primary);
}

/* Emoji Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-tropical-wrap {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-main-siam {
    font-size: 11rem;
    z-index: 3;
    animation: float-gentle 6s ease-in-out infinite;
}

.emoji-accent-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 4rem;
    opacity: 0.8;
    animation: float-gentle 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.emoji-accent-2 {
    position: absolute;
    bottom: 15%;
    left: 10%;
    font-size: 3.5rem;
    opacity: 0.6;
    animation: float-gentle 7s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Sections */
.section-premium {
    padding: 8rem 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title-wrap h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.section-title-wrap p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.premium-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.card-emoji {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.premium-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.premium-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

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

.post-premium-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

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

.post-premium-thumb {
    height: 240px;
    overflow: hidden;
}

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

.post-premium-card:hover .post-premium-thumb img {
    transform: scale(1.08);
}

.post-premium-body {
    padding: 2.5rem;
}

.post-premium-cat {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    display: block;
}

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

.post-link-premium {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-link-premium:hover {
    gap: 0.8rem;
}

/* Single Post */
.single-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
    text-align: center;
}

.single-cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.single-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.2;
}

.single-content-area {
    padding: 6rem 0;
}

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

.single-content-inner h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 4rem 0 2rem;
    color: var(--text-main);
}

.single-content-inner p {
    margin-bottom: 2rem;
}

/* Unique Lists for Siam */
.single-content-inner ul {
    margin: 3.5rem 0;
    background: var(--bg-soft);
    padding: 3rem;
    border-radius: var(--radius-lg);
    list-style: none;
    border-left: 6px solid var(--primary);
}

.single-content-inner li {
    padding: 1.2rem 0 1.2rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.single-content-inner li:last-child {
    border-bottom: none;
}

.single-content-inner li::before {
    content: '🌴';
    position: absolute;
    left: 0;
    top: 1.2rem;
    font-size: 1.3rem;
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: #fff;
    padding: 8rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 450px;
}

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

.footer-contact p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.pagination-list a, .pagination-list span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

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

/* Mobile */
@media (max-width: 1024px) {
    .hero-grid, .premium-grid, .posts-premium-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 3.5rem;
    }
}
