/*
Theme Name: Fanzalive
Theme URI: https://fanzalive.co.uk
Author: Fanzalive Team
Author URI: https://fanzalive.co.uk
Description: Custom theme for Fanzalive - Live reporting by the fans
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: fanzalive
*/

/* Import the main stylesheet */
@import 'assets/css/style.css';
/**
 * Fanzalive Main Stylesheet
 */

/* CSS Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, font, ins, kbd, q, s, samp, small, strike, strong, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 1em;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

/* Box sizing */
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

/* Typography */
@font-face {
    font-family: AerinFont;
    src: url('../fonts/MuseoSans_500.otf');
}

body {
    text-align: left;
    font-family: AerinFont, Arial, sans-serif;
    font-size: 1.0rem;
    line-height: 1.6;
    color: #343838;
    background: #FFFFFF;
}

/* Color Variables */
:root {
    --primary-color: #001A39;    /* Dark blue */
    --accent-color: #ef2f00;     /* Red */
    --secondary-accent: #FFB400; /* Yellow/gold */
    --text-color: #343848;
    --light-bg: #f9f9f9;
    --white: #FFFFFF;
    --border-color: #ddd;
}

/* Typography and links */
h1 {
    font-size: 2rem;
    font-weight: 900;
    text-align: left;
    text-decoration: none;
    padding: 0 0 6px 0;
    margin: 0 0 6px 0;
    color: var(--primary-color);
}

h1 a:link, h1 a:hover, h1 a:visited {
    color: #1A82C7;
    text-decoration: none;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    padding: 0 0 6px 0;
    margin: 0 0 6px 0;
}

h3 {
    color: #1A82C7;
    font-weight: bold;
    margin: 3px 0 3px 0;
    font-size: 1.2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-accent);
}

/* Layout */
.container, #content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix:after,
.navigation:after,
#content:before,
.navbar:after,
.acf-style:after,
.entry:after,
.social-wrapper:after,
section:after,
.box:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

/* Header */
#header {
    background-color: var(--primary-color);
    box-shadow: 0 .125rem .5rem 0 rgba(8,31,44,.1);
}

#header > .container {
    display: flex;
    align-items: center;
}

#header .user-menu,
#header .logo {
    flex: 1 auto;
}

#header .logo {
    margin: 0 29px 0 0px;
    text-align: right;
}

#header .logo .inner {
    text-align: center;
    display: inline-block;
}

#header .logo-title {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
}

#header .logo-tagline {
    display: block;
    font-size: 0.9rem;
    line-height: 1;
    color: var(--secondary-accent);
    padding: 5px 10px;
    border: 1px solid var(--secondary-accent);
    text-transform: uppercase;
}

.tagline-pro span.logo-tagline {
    display: inline-block !important;
}

#header .logo-link {
    text-decoration: none;
}

/* Navigation */
.menu,
.sub-menu {
    margin: 0;
    padding: 0;
    list-style: none outside;
}

.menu > li {
    position: relative;
    display: inline-block;
}

.menu li a {
    padding: 7px 18px;
    display: block;
    text-align: left;
    text-decoration: none;
}

.sub-menu {
    left: 0;
    opacity: 0;
    z-index: 99999;
    padding: 5px 0;
    width: 13.75rem;
    visibility: hidden;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sub-menu.menu-open {
    opacity: 1;
    visibility: visible;
}

.sub-menu li {
    display: block;
}

.sub-menu li a {
    color: var(--primary-color);
    padding: 10px 12px 10px 20px;
    border-bottom: 1px solid #eee;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

/* Main Menu */
#main-menu .menu {
    text-align: center;
    border: 1px solid #3A5677;
    border-bottom: none;
}

#main-menu .menu > li > a {
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    color: var(--white);
}

#main-menu .menu > li > a:hover,
#main-menu .menu > li > a:focus,
#main-menu .menu > li.current-menu-item > a,
#main-menu .menu > li.current-menu-ancestor > a,
#main-menu .menu > li.current_page_item > a,
#main-menu .menu > li.current_page_ancestor > a {
    border-bottom-color: var(--accent-color);
}

/* User Menu */
#header .user-menu a {
    font-size: 1.3rem;
    color: var(--white);
}

#header .user-menu .menu-icon {
    min-width: 30px;
    margin-right: 5px;
    text-align: center;
}

#header .user-menu .sub-menu {
    border-radius: 3px;
    top: 5rem;
    transition: all ease .3s;
}

#header .user-menu .sub-menu.menu-open {
    top: 3rem;
}

#header .user-menu .sub-menu:before {
    width: 0;
    height: 0;
    top: -6px;
    left: 65px;
    content: "";
    display: block;
    position: absolute;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

#header .user-menu .sub-menu a {
    font-size: 1rem;
    color: var(--primary-color);
}

#header .user-menu .user-avatar {
    width: 24px;
    height: 24px;
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

/* Footer */
footer {
    background: rgba(52,56,72,0.9);
    color: var(--white);
}

footer .inner {
    text-align: left;
    padding: 10px;
}

footer .widget_nav_menu ul {
    margin: 0;
    padding: 0;
    text-align: center;
    list-style-type: none;
}

footer .widget_nav_menu ul li {
    display: inline;
}

footer .widget_nav_menu ul li a {
    color: #CCC;
    padding: 4px;
    line-height: 22px;
    display: inline-block;
    text-decoration: none;
}

footer .widget_nav_menu ul li a:hover {
    color: var(--white);
}

footer .widget_nav_menu li + li:before {
    content: " / ";
    padding: 0 10px;
    color: var(--white);
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    #header > .container {
        flex-direction: column;
    }
    
    #header .logo {
        margin: 10px 0;
        text-align: center;
    }
    
    #main-menu .menu {
        text-align: left;
    }
    
    #main-menu .menu > li {
        display: block;
    }
    
    .menu > li > a {
        padding: 10px;
    }
}