/*
Theme Name: Ultramodern
Theme URI: https://example.com/ultramodern
Author: Antigravity AI
Author URI: https://github.com/antigravity
Description: A premium, high-end WordPress theme featuring dark mode, glassmorphism, and bento-grid layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ultramodern
Tags: dark, two-columns, flexible-header, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
*/

:root {
    --bg-color: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --text-main: #f3f4f6;
    --text-dim: #9ca3af;
    --glass-blur: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.main-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.7); /* Darker base for better contrast */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.bento-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    cursor: pointer; /* Ensure pointer cursor for the whole card */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.entry-title a {
    position: relative;
    z-index: 10; /* Bring link to front */
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Spanning logic */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.item-tall {
    grid-row: span 2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Footer */
.main-footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.main-footer .logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    border-radius: 24px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: var(--transition);
}

.bento-item:hover .post-thumbnail img {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Mouse tracking glow */
.glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    z-index: 0;
    pointer-events: none;
}

.post-content {
    position: relative;
    z-index: 1;
}

/* Single Post & Page Styles */
.single-post-container {
    padding-top: 12rem; /* Increased to avoid header overlap */
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.post-hero {
    position: relative;
    height: 450px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 32px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6rem 3rem 3rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.9), transparent);
}

.entry-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.entry-content {
    padding: 4rem; /* More padding for breathability */
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Comments Styling */
#comments {
    margin-top: 4rem;
    padding: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: block;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: var(--transition);
}

#commentform input:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

#commentform .submit {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

#commentform .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
}

.comment-list {
    list-style: none;
    margin-top: 3rem;
}

.comment-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .item-large, .item-wide, .item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .main-header {
        top: 1rem;
        padding: 0.75rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
}
