/*
Theme Name: Aurora
Theme URI: https://daniekay.com/aurora
Author: Daniel Ekay
Author URI: https://daniekay.com
Description: Aurora is a flexible and highly customizable WordPress blog theme designed for creators, publishers, and content-driven websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurora
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Update URI: false
Tags: blog, custom-colors, custom-fonts, custom-header, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/


body {
    margin: 0;
    font-family: var(--body-font-family);
}

html {
    font-family: var(--body-font-family);
}

footer {
    position: relative;
    z-index: 99999
}

.header-container, .site-container, .footer-container {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-container, .footer-container {    
    max-width: min(var(--site-width), 100vw);
}

#site-header {
    background-color: var(--header-background-color);
    color: var(--menu-text-color);            
    font-family: var(--menu-font-family);
    font-weight: var(--menu-font-weight);
    font-style: var(--menu-font-style); 
    letter-spacing: var(--menu-letter-spacing-desktop);
    word-spacing: var(--menu-word-spacing-desktop);
    font-size: var(--menu-font-size-desktop);
    line-height: var(--menu-line-height-desktop);
    text-decoration: var(--menu-text-decoration);
    white-space: nowrap;
}

#site-header .menu {
    text-transform: var(--menu-text-transform);
}

#site-footer {
    background-color: var(--footer-background-color);
}

.site-header .social-icons {
    color: var(--header-icon-color);
}

.site-header a:hover, .site-header .social-icon:hover{
    color: var(--menu-text-hover-color);
}
.menu, .desktop-menu, .mobile-menu, .sub-menu {list-style:none}

a {
    color: var(--link-color);
    text-decoration: underline 0.5px;
}

a:hover {
    color: var(--link-hover-color);
}

button, .wp-block-button__link, .button, input#submit {
    color: var( --button-text-color);
    background-color: var(--button-background-color);
    font-family: var(--button-font-family);
    font-style: var(--button-font-style);
    font-weight: var(--button-font-weight);
    text-transform: var(--button-text-transform);
    font-size: var(--button-font-size-desktop);
    text-decoration: var(--button-text-decoration);
    letter-spacing: var(--button-letter-spacing-desktop);
    word-spacing: var( --button-word-spacing-desktop);
    line-height: var(--button-line-height-desktop);
}

button:hover, .wp-block-button__link:hover, .button:hover, input#submit:hover {
    color: var(--button-text-hover-color);
    background-color: var(--button-background-hover-color);
}

.wp-block-heading:first-of-type {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {    
    color: var(--heading-color);
}

h1 {
    font-family: var(--h1-font-family), Roboto, sans-serif;
    font-style: var(--h1-font-style);
    font-weight: var(--h1-font-weight);
    text-transform: var(--h1-text-transform);
    font-size: var(--h1-font-size-desktop);
    letter-spacing: var(--h1-letter-spacing-desktop);
    word-spacing: var( --h1-word-spacing-desktop);
    line-height: var(--h1-line-height-desktop);
    text-decoration: var(--h1-text-decoration);
}

h2 {
    font-family: var(--h2-font-family), Roboto, sans-serif;
    font-style: var(--h2-font-style);
    font-weight: var(--h2-font-weight);
    text-transform: var(--h2-text-transform);
    text-decoration: var(--h2-text-decoration);
    font-size: var(--h2-font-size-desktop);
    letter-spacing: var(--h2-letter-spacing-desktop);
    word-spacing: var( --h2-word-spacing-desktop);
    line-height: var(--h2-line-height-desktop);
}

h3 {
    font-family: var(--h3-font-family), Roboto, sans-serif;
    font-style: var(--h3-font-style);
    font-weight: var(--h3-font-weight);
    text-transform: var(--h3-text-transform);
    text-decoration: var(--h3-text-decoration);
    font-size: var(--h3-font-size-desktop);
    letter-spacing: var(--h3-letter-spacing-desktop);
    word-spacing: var( --h3-word-spacing-desktop);
    line-height: var(--h3-line-height-desktop);
}

h4 {
    font-family: var(--h4-font-family), Roboto, sans-serif;
    font-style: var(--h4-font-style);
    font-weight: var(--h4-font-weight);
    text-transform: var(--h4-text-transform);
    text-decoration: var(--h4-text-decoration);
    font-size: var(--h4-font-size-desktop);
    letter-spacing: var(--h4-letter-spacing-desktop);
    word-spacing: var( --h4-word-spacing-desktop);
    line-height: var(--h4-line-height-desktop);
}

h5 {
    font-family: var(--h5-font-family), Roboto, sans-serif;
    font-style: var(--h5-font-style);
    font-weight: var(--h5-font-weight);
    text-transform: var(--h5-text-transform);
    text-decoration: var(--h5-text-decoration);
    font-size: var(--h5-font-size-desktop);
    letter-spacing: var(--h5-letter-spacing-desktop);
    word-spacing: var( --h5-word-spacing-desktop);
    line-height: var(--h5-line-height-desktop);
}

h6 {
    font-family: var(--h6-font-family), Roboto, sans-serif;
    font-style: var(--h6-font-style);
    font-weight: var(--h6-font-weight);
    text-transform: var(--h6-text-transform);
    text-decoration: var(--h6-text-decoration);
    font-size: var(--h6-font-size-desktop);
    letter-spacing: var(--h6-letter-spacing-desktop);
    word-spacing: var( --h6-word-spacing-desktop);
    line-height: var(--h6-line-height-desktop);
}

.post-content {
    color: var(--body-text-color);
    font-family: var(--body-font-family), Roboto, sans-serif;
    font-style: var(--body-font-style);
    font-weight: var(--body-font-weight);
    text-transform: var(--body-text-transform);
    text-decoration: var(--body-text-decoration);
    font-size: var(--body-font-size-desktop);
    letter-spacing: var(--body-letter-spacing-desktop);
    word-spacing: var(--body-word-spacing-desktop);
    line-height: var(--body-line-height-desktop);    
}

.post-content li{
    margin-bottom: 5px;
}

.post-content > a {
    color: var(--link-color);
    text-decoration: underline 0.5px;
}

.post-content > a:hover {
    color: var(--link-hover-color);
}

.single-post .post-header img, .single-post .post-content img {
    max-width: 100%
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

footer#site-footer, footer h3 {
    color: var(--footer-text-color);
    transition: color 0.3s;
}

.footer-container {
    padding: 20px
}

footer a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

footer#site-footer a:hover {
    color: var(--footer-link-color);  
}

.archive-banner {
    border-bottom: solid 1px #8b8b8b2b;
    padding-bottom: 30px;
    margin: 50px 60px 0;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.archive-banner h1 {
    margin: 0;
    color: var(--body-text-color)
}

.arr-breadcrumbs {
    color: var(--body-text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1
}

.arr-breadcrumbs .bc-home {
    font-weight: 600
}

.arr-breadcrumbs a {
    text-decoration: none
}

.arr-breadcrumbs i {
    font-size: 76%;
    position: relative;
    top: -1.5px
}

.archive-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px
}

/* Posts container takes full width if no sidebar */
.posts-container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Takes remaining space */
    max-width: 100%;
}

/* Sidebar styling */
.archive-sidebar {
    width: min(23%, 280px);
    background-color: red;
}

.pagination {
    display: flex;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Pretty */
body.dropcase-pretty .post-content > p:first-of-type::first-letter {
    font-size: 3.5em;
    font-weight: bold; 
    float: left;
    margin-right: 10px;
    margin-top: 7px;
    line-height: 1;
    border: solid 1px var(--body-text-color);
    border-radius: 2px;
    padding: 10px;
}

/* Bold */
body.dropcase-bold .post-content > p:first-of-type::first-letter {
    font-size: 3.5em;
    font-weight: bold; 
    float: left;
    margin-right: 10px;
    margin-top: 7px;
    line-height: 1;
    color: var(--site-background-color);
    background-color: var(--body-text-color);
    border-radius: 3px;
    padding: 10px;
}

/* Casual */
body.dropcase-casual .post-content > p:first-of-type::first-letter {
    font-size: 3.3em;
    font-weight: bold; 
    float: left;
    margin-right: 10px;
    margin-top: 7px;
    line-height: 1
}

.post-sidebar {
    background-color: var(--sidebar-background-color);
    height: 70vh
    /* Unset sidebar styles */
}

.page-template-default img,
.page-template-default i,
.page-template-default iframe,
.page-template-default video,
.page-template-default form {
    max-width: 100%
}

.page-template-default .site-container, .woocommerce .site-main {
    padding: 20px;
    max-width: min(var(--site-width), 100vw);
    box-sizing: border-box;
    margin: auto
}

.arr-custom-form {
    max-width: min(var(--site-width), 100vw);
    box-sizing: border-box;
    margin: 0 auto 20px;
}

.wp-element-caption {
    color: var(--body-text-color);
    font-family: var(--body-font-family);
    opacity: 0.9
}

@media (max-width: 768px) {

    #main-header {
        letter-spacing: var(--menu-letter-spacing-tablet);
        word-spacing: var(--menu-word-spacing-tablet);
        font-size: var(--menu-font-size-tablet);
        line-height: var(--menu-line-height-tablet);
    }

    .post-content {
        font-size: var(--body-font-size-tablet);
        letter-spacing: var(--body-letter-spacing-tablet);
        word-spacing: var( --body-word-spacing-tablet);
        line-height: var(--body-line-height-tablet);
    }

    h1 {
        font-size: var(--h1-font-size-tablet);
        letter-spacing: var(--h1-letter-spacing-tablet);
        word-spacing: var( --h1-word-spacing-tablet);
        line-height: var(--h1-line-height-tablet);
    }

    h2 {
        font-size: var(--h2-font-size-tablet);
        letter-spacing: var(--h2-letter-spacing-tablet);
        word-spacing: var( --h2-word-spacing-tablet);
        line-height: var(--h2-line-height-tablet);
    }
    
    h3 {
        font-size: var(--h3-font-size-tablet);
        letter-spacing: var(--h3-letter-spacing-tablet);
        word-spacing: var( --h3-word-spacing-tablet);
        line-height: var(--h3-line-height-tablet);
    }
    
    h4 {
        font-size: var(--h4-font-size-tablet);
        letter-spacing: var(--h4-letter-spacing-tablet);
        word-spacing: var( --h4-word-spacing-tablet);
        line-height: var(--h4-line-height-tablet);
    }
    
    h5 {
        font-size: var(--h5-font-size-tablet);
        letter-spacing: var(--h5-letter-spacing-tablet);
        word-spacing: var( --h5-word-spacing-tablet);
        line-height: var(--h5-line-height-tablet);
    }
    
    h6 {
        font-size: var(--h6-font-size-tablet);
        letter-spacing: var(--h6-letter-spacing-tablet);
        word-spacing: var( --h6-word-spacing-tablet);
        line-height: var(--h6-line-height-tablet);
    }

    button, .wp-block-button__link, .button, input#submit {
        font-size: var(--button-font-size-tablet);
        letter-spacing: var(--button-letter-spacing-tablet);
        word-spacing: var( --button-word-spacing-tablet);
        line-height: var(--button-line-height-tablet);
    }

    .archive-wrapper {
        flex-direction: column; /* Stack items vertically */
    }

    .archive-wrapper .posts-container {
        max-width: 100%; /* Full width on mobile */
    }

    .archive-wrapper .archive-sidebar {
        width: 100%; /* Sidebar takes full width on mobile */
    }

    body.dropcase-pretty .post-content > p:first-of-type::first-letter {
        font-size: 3em;
    }
}

@media (max-width: 480px) {

    #main-header {
        letter-spacing: var(--menu-letter-spacing-mobile);
        word-spacing: var(--menu-word-spacing-mobile);
        font-size: var(--menu-font-size-mobile);
        line-height: var(--menu-line-height-mobile);
    }

    .post-content {
        font-size: var(--body-font-size-mobile);
        letter-spacing: var(--body-letter-spacing-mobile);
        word-spacing: var( --body-word-spacing-mobile);
        line-height: var(--body-line-height-mobile);
    }

    h1 {
        font-size: var(--h1-font-size-mobile);
        letter-spacing: var(--h1-letter-spacing-mobile);
        word-spacing: var( --h1-word-spacing-mobile);
        line-height: var(--h1-line-height-mobile);
    }

    h2 {
        font-size: var(--h2-font-size-mobile);
        letter-spacing: var(--h2-letter-spacing-mobile);
        word-spacing: var( --h2-word-spacing-mobile);
        line-height: var(--h2-line-height-mobile);
    }
    
    h3 {
        font-size: var(--h3-font-size-mobile);
        letter-spacing: var(--h3-letter-spacing-mobile);
        word-spacing: var( --h3-word-spacing-mobile);
        line-height: var(--h3-line-height-mobile);
    }
    
    h4 {
        font-size: var(--h4-font-size-mobile);
        letter-spacing: var(--h4-letter-spacing-mobile);
        word-spacing: var( --h4-word-spacing-mobile);
        line-height: var(--h4-line-height-mobile);
    }
    
    h5 {
        font-size: var(--h5-font-size-mobile);
        letter-spacing: var(--h5-letter-spacing-mobile);
        word-spacing: var( --h5-word-spacing-mobile);
        line-height: var(--h5-line-height-mobile);
    }
    
    h6 {
        font-size: var(--h6-font-size-mobile);
        letter-spacing: var(--h6-letter-spacing-mobile);
        word-spacing: var( --h6-word-spacing-mobile);
        line-height: var(--h6-line-height-mobile);
    }

    button, .wp-block-button__link, .button, input#submit {
        font-size: var(--button-font-size-mobile);
        letter-spacing: var(--button-letter-spacing-mobile);
        word-spacing: var( --button-word-spacing-mobile);
        line-height: var(--button-line-height-mobile);
    }

    #scrollToTop {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        border: none;
    }

    body.dropcase-casual .post-content > p:first-of-type::first-letter {
        font-size: 3em;
        margin-right: 8px;
    }

    
    .archive-wrapper {             
        padding: 20px 10px
    }

    .archive-banner {
        margin: 10px;
        padding-bottom: 10px
    }

    .page-template-default .site-container {
        padding: 10px
    }
}
