/*
Theme Name: Aboutican
Theme URI: https://aboutican.com
Author: You
Description: An investigative journalism and storytelling portfolio theme.
Version: 2.6
Text Domain: aboutican
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    width: 100%;
    overflow-x: hidden; 
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4; 
}

/* =========================================================================
   AUTHENTIC 80s EDITORIAL MASTER GRID (Homepage Only)
   ========================================================================= */

.miami-viewport {
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%; height: 100%;
    display: flex;
    background-color: #000000; /* Deep Solid Black Base */
    z-index: 9999;
}

/* Left Panel: Clean White Column Profile */
.miami-profile-column {
    width: 35%;
    background-color: #ffffff; /* Pure White Panel */
    padding: 4.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 12px solid #00e5ff; /* Structural Electric Cyan Accent Strip */
    position: relative;
    z-index: 20;
}

.miami-profile-column h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 900;
    color: #000000; /* Solid Black Heading */
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.miami-bio-text {
    max-width: 280px;
    margin-bottom: 3rem;
}

.miami-bio-text p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.miami-cv-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #ff8eed; /* Bubblegum Pink */
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.miami-cv-btn:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

/* Social Wrapper Options */
.miami-social-wrapper {
    margin-top: auto;
    display: flex;
    gap: 1.5rem; /* Clean alignment gap between icons */
    align-items: center;
}

.miami-social-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Elegant Icon Palette Shifting (Bypasses flat black) */
.miami-social-icon svg {
    fill: #000000; /* Default solid black */
    transition: fill 0.3s ease;
}

.miami-social-icon:hover {
    transform: translateY(-3px);
}

.miami-social-icon:hover svg {
    fill: #ff8eed; /* Turns Bubblegum Pink on hover */
}

/* Right Side: Asymmetric Lookbook Grid */
.miami-grid-column {
    width: 65%;
    display: grid;
    grid-template-rows: 52% 48%; 
    grid-template-columns: 1fr 1fr;
    background-color: #000000;
}

/* Base Navigation Tile Settings */
.miami-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    text-decoration: none !important;
}

/* Landscape Placement for Main Articles */
.tile-articles {
    grid-column: 1 / span 2;
    grid-row: 1;
    border-bottom: 4px solid #000000;
}

/* Square Placements Below */
.tile-about {
    grid-column: 1;
    grid-row: 2;
    border-right: 2px solid #000000;
}

.tile-misc {
    grid-column: 2;
    grid-row: 2;
    border-left: 2px solid #000000;
}

/* Image Layer Handling */
.miami-tile-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.miami-tile:hover .miami-tile-bg {
    transform: scale(1.04);
}

/* 80s Photo-Gel Color Tint Overlays */
.miami-color-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    mix-blend-mode: multiply; 
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.tile-articles .miami-color-overlay { background-color: #00e5ff; } /* Electric Cyan */
.tile-about .miami-color-overlay { background-color: #ff8eed; }   /* Bubblegum Pink */
.tile-misc .miami-color-overlay { background-color: #59f3b6; }    /* Mint Green */

.miami-tile:hover .miami-color-overlay {
    opacity: 0.65; 
}

/* Typography Gradient Wash */
.miami-text-wash {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
    z-index: 3;
}

/* High-End Clean Headlines */
.miami-tile h2 {
    color: #ffffff !important; 
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px; 
    position: relative;
    z-index: 4;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.miami-tile:hover h2 {
    transform: translateY(-5px);
}

/* Responsive Editorial Collapse */
@media (max-width: 992px) {
    .miami-viewport {
        position: relative;
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }
    
    .miami-profile-column {
        width: 100%;
        padding: 3rem 2rem;
        border-left: none;
        border-bottom: 8px solid #00e5ff;
    }
    
    .miami-bio-text { max-width: 100%; }

    .miami-grid-column {
        width: 100%;
        grid-template-rows: repeat(3, 260px);
        grid-template-columns: 1fr;
    }
    
    .tile-articles { grid-column: 1; grid-row: 1; }
    .tile-about { grid-column: 1; grid-row: 2; border-right: none; border-bottom: 4px solid #000000;}
    .tile-misc { grid-column: 1; grid-row: 3; border-left: none; }
    
    .miami-tile { padding: 2rem; }
}

/* =========================================================================
   YOUR ORIGINAL INTERNAL PAGES (Completely preserved and safe)
   ========================================================================= */

.page-articles { background-color: #fdfdfd; }
.page-articles .accent { color: #7293FB; }

.page-about { background-color: #fdfdfd; }
.page-about .accent { color: #F0AEDB; }

.page-misc { background-color: #fdfdfd; }
.page-misc .accent { color: #81E6C4; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #ffffff;
    border-bottom: 2px solid #eee;
}

.back-link {
    text-decoration: none;
    color: #333;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #F0AEDB;
}

.page-title {
    font-size: 1.5rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
}

/* Featured Top Story */
.featured-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.featured-story:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.featured-story .news-image {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #7293FB; 
}

.featured-story .news-content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Grid for standard stories */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-card .news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #eee; 
}

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

/* Typography for News Cards */
.news-category {
    color: #F0AEDB;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.news-headline {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-headline a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s ease;
}

.news-headline a:hover {
    color: #7293FB;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.news-date {
    margin-top: auto;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Simple content for About & Misc pages */
.simple-content {
    background: #fff;
    padding: 3rem;
    border: 1px solid #eee;
    line-height: 1.8;
}

/* =========================================
   WORDPRESS EDITOR CONTENT STYLES
   ========================================= */

.simple-content p, 
.post-content p {
    margin-bottom: 1.5rem;
}

.simple-content h1, .simple-content h2, .simple-content h3,
.simple-content h4, .simple-content h5, .simple-content h6,
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #222;
}

.simple-content ul, .simple-content ol,
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem; 
}

.simple-content li, .post-content li {
    margin-bottom: 0.5rem;
}

.simple-content blockquote, .post-content blockquote {
    border-left: 4px solid #F0AEDB;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

/* Responsive adjustments for Articles */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .featured-story {
        grid-template-columns: 1fr;
    }
    
    .featured-story .news-image {
        min-height: 250px;
    }

    .featured-story .news-content {
        padding: 2rem;
    }
}

/* =========================================
   WORDPRESS OVERRIDES & FIXES
   ========================================= */

body.admin-bar .miami-viewport {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 768px) {
    body.admin-bar .miami-viewport {
        top: 0;
        height: auto;
        margin-top: 46px; 
    }
}