/*
Theme Name: Luminous Urbanism
Description: High-End Real Estate Blog Design with Glassmorphism and Sharp Typography
Author: Senior Frontend Designer
Version: 1.0
*/

:root {
    --c-bg: #011627;
    --c-text: #FDFFFC;
    --c-accent: #FF9F1C;
    --c-primary: #2EC4B6;
    --c-glass: rgba(255, 255, 255, 0.05);
    --c-glass-border: rgba(255, 255, 255, 0.1);
    --f-main: 'Space Grotesk', sans-serif;
    --f-display: 'Cormorant Garamond', serif;
    --sidebar-w: 320px;
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.site-main {
    display: flex;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    margin-right: var(--sidebar-w);
}

.sidebar-right {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background: #000;
    border-left: 1px solid var(--c-glass-border);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Sidebar Elements */
.logo {
    font-family: var(--f-display);
    font-size: 2.2rem;
    color: var(--c-accent);
    text-decoration: none;
    margin-bottom: 80px;
    display: block;
    line-height: 1;
}

.nav-urban ul { list-style: none; }
.nav-urban li { margin-bottom: 30px; }
.nav-urban a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 500;
    transition: 0.3s;
}
.nav-urban a:hover, .nav-urban .current-menu-item a {
    color: #fff;
    padding-right: 15px;
    border-right: 3px solid var(--c-accent);
}

.sidebar-footer {
    margin-top: auto;
}
.sidebar-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.contact-item {
    color: var(--c-text);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

/* Hero */
.hero-urban {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(46, 196, 182, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 159, 28, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-img-container {
    position: absolute;
    right: 0; top: 0; width: 50%; height: 100%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-img-container img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7;
    filter: grayscale(0.5);
}

.hero-text {
    position: relative;
    z-index: 10;
    max-width: 800px;
}
.hero-text h1 {
    font-family: var(--f-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 40px;
}
.hero-text h1 span { color: var(--c-accent); font-style: italic; }

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin-bottom: 50px;
}

/* Bento Cards */
.bento-section { padding: 120px 10%; background: #000; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 30px;
}

.bento-item {
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}
.bento-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-10px); }

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-item h3 { font-family: var(--f-display); font-size: 2.2rem; margin-bottom: 20px; }
.bento-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    transition: 0.6s;
}
.bento-item:hover .bento-img { transform: scale(1.1); opacity: 0.6; }

/* Blog Feed */
.urban-feed { padding: 120px 10%; }
.section-head { margin-bottom: 80px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-head h2 { font-family: var(--f-display); font-size: 4rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.urban-card {
    display: flex;
    flex-direction: column;
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    transition: 0.4s;
}
.urban-card:hover { border-color: var(--c-accent); }

.card-media {
    height: 400px;
    position: relative;
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.urban-card:hover .card-media img { transform: scale(1.05); }

.card-cat {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--c-accent);
    color: #000;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body { padding: 40px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 0.8rem; opacity: 0.5; margin-bottom: 15px; display: block; }
.card-body h3 { font-family: var(--f-display); font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
.card-excerpt { font-size: 1rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 30px; }

.read-btn {
    margin-top: auto;
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.read-btn::after { content: '→'; transition: 0.3s; }
.read-btn:hover::after { transform: translateX(10px); }

/* Pagination */
.urban-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 100px;
}
.pg-num {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-glass-border);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.pg-num:hover, .pg-num.current {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #000;
}

/* Footer */
.site-footer {
    padding: 100px 10%;
    background: #000;
    border-top: 1px solid var(--c-glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}
.footer-col h4 { font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 40px; color: var(--c-accent); }

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--c-glass-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Single */
.single-hero {
    height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 10%;
    position: relative;
    background: #000;
}
.single-hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.single-head { position: relative; z-index: 10; max-width: 900px; }
.single-head h1 { font-family: var(--f-display); font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 30px; line-height: 1.1; }

.entry-content {
    max-width: 850px;
    margin: 80px auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}
.entry-content p { margin-bottom: 35px; }
.entry-content h2, .entry-content h3 { font-family: var(--f-display); margin: 60px 0 30px; color: var(--c-accent); }

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #000;
    z-index: 1100;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--c-glass-border);
}

.mobile-logo {
    font-family: var(--f-display);
    color: var(--c-accent);
    text-decoration: none;
    font-size: 1.4rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1400px) {
    --sidebar-w: 280px;
}

@media (max-width: 1100px) {
    .content-wrapper { margin-right: 0; padding-top: 70px; }
    .mobile-header { display: flex; }
    .sidebar-right {
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        position: fixed;
        width: 300px;
        z-index: 1200;
    }
    .sidebar-right.active {
        transform: translateX(0);
    }
    .logo { font-size: 1.8rem; margin-bottom: 40px; }
    .nav-urban { display: block; }
    .sidebar-footer { display: block; }
}

@media (max-width: 768px) {
    .hero-urban { padding: 100px 20px; text-align: center; }
    .hero-img-container { display: none; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-item { min-height: 350px; }
    .bento-item.large, .bento-item.wide { grid-column: auto; grid-row: auto; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
