/**
 * Additional styles
 *
 * @package Starter_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Additional Components
   ========================================================================== */

/* Hero Video Section */
.hero-video-section {
    position: relative;
    overflow: hidden;
    width: calc(100% - 100px);
    height: 500px;
    margin: 0 50px;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero-video-section {
        height: 300px;
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        min-width: auto;
        min-height: auto;
        object-fit: contain;
    }
}

/* Sticky Header */
.has-sticky-header .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

/* Responsive Embeds */
.responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

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

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Page Links */
.page-links {
    clear: both;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.page-links .page-number {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    border: 1px solid var(--color-border);
}

.page-links .page-number.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Keyboard Navigation */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation input:focus,
.keyboard-navigation select:focus,
.keyboard-navigation textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Entry Content Styles */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-background-alt);
    font-style: italic;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.entry-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    border-radius: 4px;
}

.entry-content code {
    padding: 0.125rem 0.25rem;
    background-color: var(--color-background-alt);
    font-family: monospace;
    font-size: 0.875em;
    border-radius: 2px;
}

.entry-content pre code {
    padding: 0;
    background-color: transparent;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--color-background-alt);
    border-radius: 4px;
}

.author-box .avatar {
    flex-shrink: 0;
    border-radius: 50%;
}

.author-box .author-name {
    margin: 0 0 0.5rem;
}

.author-box .author-bio {
    margin: 0;
    color: var(--color-text-light);
}

/* Category/Tag Lists */
.cat-links,
.tags-links {
    display: block;
    margin-top: 0.5rem;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    background-color: var(--color-background-alt);
    font-size: 0.875rem;
    border-radius: 2px;
}

.cat-links a:hover,
.tags-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Footer Menu */
.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.footer-navigation .footer-menu a {
    color: #cccccc;
}

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

/* Social Menu */
.social-navigation {
    margin: 1rem 0;
}

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

.social-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-navigation a:hover {
    background-color: var(--color-primary);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
