/*
Theme Name: Mish Mash
Theme URI: https://mishmash.com.au
Description: Custom theme for Mish Mash Multimedia - a creative multimedia production company. Features fullscreen fading background slideshow, custom galleries, and one-page scrolling homepage.
Version: 1.0.0
Author: Mish Mash Multimedia
Author URI: https://mishmash.com.au
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mishmash
Tags: custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, flexible-header, accessibility-ready

Mish Mash WordPress Theme, Copyright 2026
Mish Mash is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    background: #000;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #333;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #f0ad4e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #fe8a02;
    text-decoration: none;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
.site-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Adjust header when WordPress admin bar is visible */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.site-logo a {
    color: #fff;
}

.site-logo a:hover {
    color: #f0ad4e;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    position: relative;
    display: block;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #f0ad4e;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: #f0ad4e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Dropdown menus - compact vertical style */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    min-width: 200px;
    max-width: 220px;
    padding: 0.25rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: block !important;
    flex-direction: column !important;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    display: block !important;
    width: 100%;
    float: none !important;
}

.main-navigation ul ul a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block !important;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: rgba(240, 173, 78, 0.2);
}

/* Third level dropdown - appears to the right */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
    margin-left: 1px;
}

/* Indicator for items with submenus */
.main-navigation li.menu-item-has-children > a::before {
    content: '▼';
    display: inline-block;
    font-size: 0.6rem;
    margin-right: 0.35rem;
    vertical-align: middle;
    opacity: 0.7;
}

.main-navigation ul ul li.menu-item-has-children > a::before {
    content: '▶';
    margin-right: 0.35rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 70px 0 0; /* Account for fixed header */
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* Container with transparent background */
.content-container {
    width: 90%;
    max-width: 1600px;
    margin: 1.5vh auto;
    padding: 3rem 4rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    min-height: auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.content-container h1,
.content-container h2,
.content-container h3,
.content-container h4,
.content-container h5,
.content-container h6 {
    color: #fff;
}

.content-container a {
    color: #f0ad4e;
}

.content-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

/* Make article and entry content wider */
article {
    max-width: 100%;
    width: 100%;
}

.entry-content {
    max-width: 100%;
    width: 100%;
}

/* Center page titles */
.entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entry-title {
    text-align: center;
}

/* Center paragraph text */
.entry-content p {
    text-align: center;
}

.entry-content {
    text-align: center;
}

/* Make article and entry-content full width */
article {
    max-width: 100%;
}

.entry-content {
    max-width: 100%;
}

/* WordPress embed blocks - break out and go full width */
.entry-content .wp-block-embed {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
}

.entry-content .wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 5% !important;
}

/* Responsive embedded videos */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* YouTube/Vimeo embeds - maintain aspect ratio */
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo.com"] {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 400px !important;
}

/* Ensure proper sizing */
.wp-block-embed iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

/* Responsive embed container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-top: auto;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-content {
    display: none; /* Hide widget areas */
}

.footer-section {
    display: none; /* Hide widget sections */
}

.footer-bottom {
    text-align: center;
    padding: 0;
    border-top: none;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-navigation {
    margin-top: 0.5rem;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.5rem 0 0;
    padding: 0;
}

.footer-navigation a {
    color: #999;
    font-size: 0.85rem;
}

.footer-navigation a:hover {
    color: #f0ad4e;
}

/* Background Slideshow styles moved to /assets/css/slideshow.css */

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0.5rem;
        padding-left: 1rem;
    }
    
    .main-navigation ul ul ul {
        left: auto;
        padding-left: 1rem;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .content-container {
        width: 90%;
        padding: 2rem 1.5rem;
        margin: 3vh auto;
    }
}

@media (max-width: 768px) {
    .content-container {
        width: 95%;
        padding: 2rem 1rem;
    }
    
    .header-container,
    .footer-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
