/*!
 * Bootstraped Theme Main Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    line-height: 1.6;
    color: #333;
}

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

.site-main {
    flex: 1;
}

/* Skip links */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1.5rem;
    z-index: 999999;
    text-decoration: none;
}

.skip-link:focus {
    display: block;
    left: 1.5rem;
    top: 1.5rem;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.top-bar-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-menu-item {
    display: inline-block;
    margin-right: 1.5rem;
}

.top-bar-menu-item:last-child {
    margin-right: 0;
}

.top-bar-link {
    color: inherit;
    transition: color 0.3s ease;
}

.top-bar-link:hover {
    color: var(--bs-primary, #007cba);
}

.top-bar-no-menu {
    font-style: italic;
}

@media (max-width: 767.98px) {
    .top-bar .row {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .top-bar .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .top-bar-menu-item {
        margin-right: 1rem;
    }
}

.navbar-brand .logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

.social-links a {
    color: inherit;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--bs-primary, #007cba);
}

.cart-count {
    font-size: 0.75rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.navbar-nav .dropdown-item {
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    color: white;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.hero-section.hero-full-height {
    min-height: 100vh;
}

.hero-custom-height {
    min-height: inherit;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    transition: opacity 0.3s ease;
}

.hero-section .hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .hero-description {
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.hero-image-wrapper {
    position: relative;
    z-index: 3;
}

.hero-image-wrapper img {
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Hero section responsive improvements */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-section .hero-description {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--bs-primary, #007cba);
}

.entry-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: inherit;
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--bs-primary, #007cba);
}

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

.post-thumbnail img {
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Widget Styles
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--bs-primary, #007cba);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    margin-top: auto;
}

.footer-widgets {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets .widget-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-widgets ul li {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    font-size: 0.875rem;
}

.footer-menu .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

.footer-menu a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--bs-primary, #007cba);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin-top: 3rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    text-decoration: none;
    color: var(--bs-primary, #007cba);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--bs-primary, #007cba);
    color: white;
    border-color: var(--bs-primary, #007cba);
}

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

.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: relative;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay > * {
    position: relative;
    z-index: 2;
}

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

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .navbar-brand .logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
}

/* ==========================================================================
   Post Formats
   ========================================================================== */

.post-format-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    font-size: 1.5rem;
}

.post-format-video .video-play-overlay,
.post-format-audio .audio-play-overlay,
.post-format-link .link-overlay {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.post-thumbnail:hover .video-play-overlay,
.post-thumbnail:hover .audio-play-overlay,
.post-thumbnail:hover .link-overlay {
    opacity: 1 !important;
}

.post-video-embed,
.post-audio-embed {
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-iframe {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-external-link {
    transition: all 0.3s ease;
}

.post-external-link:hover {
    background-color: #e9ecef !important;
    border-color: var(--bs-primary) !important;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */

.full-width-page {
    margin: 0;
}

.full-width-page .page-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: white;
}

.boxed-page {
    max-width: none;
}

.front-page-full-width .front-page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.front-page-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.front-page-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-page-hero .hero-content {
    z-index: 3;
}

/* ==========================================================================
   Single Post Enhancements
   ========================================================================== */

.single-post .entry-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.entry-meta .meta-separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.author-bio {
    transition: all 0.3s ease;
}

.author-bio:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-posts .card-img-top-wrapper {
    overflow: hidden;
}

.related-posts .card-img-top {
    transition: transform 0.3s ease;
}

.related-posts .card:hover .card-img-top {
    transform: scale(1.05);
}

.post-navigation .btn {
    height: auto;
    padding: 1rem;
    text-align: inherit;
}

.post-navigation .nav-title {
    line-height: 1.4;
}

.post-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Page Links Styling
   ========================================================================== */

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.page-links .page-links-title {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
}

.page-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Responsive Enhancements for Templates
   ========================================================================== */

@media (max-width: 767.98px) {
    .front-page-hero {
        min-height: 70vh !important;
        text-align: center;
    }
    
    .front-page-hero .hero-content {
        padding: 2rem 0;
    }
    
    .boxed-page .card-body {
        padding: 2rem !important;
    }
    
    .single-post .entry-header {
        margin-bottom: 1.5rem;
    }
    
    .author-bio {
        text-align: center;
    }
    
    .author-bio .row {
        flex-direction: column;
        align-items: center !important;
    }
    
    .author-bio .col-auto {
        margin-bottom: 1rem;
    }
    
    .post-navigation .btn {
        margin-bottom: 1rem;
    }
    
    .post-format-icon {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .full-width-page .page-header {
        padding: 3rem 0;
    }
    
    .page-links .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .no-print,
    .navbar,
    .site-footer,
    .widget-area,
    .skip-link {
        display: none !important;
    }
    
    .site-main {
        width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}