/**
 * Fun88 Theme - Custom Styles
 *
 * @package Fun88_Theme
 * @version 1.0.0
 */

/* ===================================
   ADDITIONAL HEADER STYLES
   =================================== */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-wrapper {
    position: relative;
}

/* Mobile Navigation Enhancements */
.mobile-header-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-header-actions .btn {
    width: 100%;
    text-align: center;
}

/* ===================================
   HERO SECTION ENHANCEMENTS
   =================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   CONTENT ENHANCEMENTS
   =================================== */
.section-content {
    position: relative;
}

.section-content h2,
.section-content h3 {
    position: relative;
    padding-left: 15px;
}

.section-content h2::before,
.section-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: #ff6600;
    border-radius: 2px;
}

.section-content ul {
    list-style: none;
    padding-left: 0;
}

.section-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.section-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
    font-size: 18px;
}

/* ===================================
   POST STYLES
   =================================== */
.post-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-item .entry-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.post-item .entry-title a {
    color: #1a3a5c;
}

.post-item .entry-title a:hover {
    color: #ff6600;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #ff6600;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1a3a5c;
    padding-left: 10px;
}

.post-thumbnail {
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* ===================================
   SINGLE POST STYLES
   =================================== */
.single-post .entry-content {
    font-size: 17px;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 25px;
}

.single-post .entry-content img {
    border-radius: 8px;
    margin: 25px 0;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    margin-bottom: 15px;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 16px;
    color: #1a3a5c;
    font-weight: 600;
}

/* ===================================
   SIDEBAR ENHANCEMENTS
   =================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateX(5px);
}

.widget ul li {
    position: relative;
    padding-left: 0;
}

.widget ul li::before {
    content: none;
}

/* ===================================
   FOOTER ENHANCEMENTS
   =================================== */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    position: relative;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.footer-menu a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ff6600;
    font-size: 18px;
    line-height: 1;
}

.footer-menu a:hover {
    color: #ff6600;
    padding-left: 20px;
}

/* ===================================
   BUTTON ENHANCEMENTS
   =================================== */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a3a5c;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb span {
    color: #333;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    color: #1a3a5c;
    border: 2px solid #1a3a5c;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #1a3a5c;
    color: #fff;
}

.pagination .dots {
    border: none;
    background: none;
    padding: 10px 5px;
}

/* ===================================
   SEARCH FORM
   =================================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px 0;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #ff6600;
}

.search-submit {
    padding: 12px 25px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #e65c00;
}

/* ===================================
   NO RESULTS
   =================================== */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-results h2 {
    color: #1a3a5c;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* ===================================
   LOADING STATES
   =================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===================================
   UTILITY ANIMATIONS
   =================================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-content h2 {
        font-size: 20px;
    }

    .section-content h3 {
        font-size: 18px;
    }

    .post-item .entry-title {
        font-size: 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .post-item {
        padding: 20px;
    }

    .post-item .entry-title {
        font-size: 18px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .menu-toggle,
    .header-actions {
        display: none !important;
    }

    .site-main {
        padding: 0;
    }

    .main-content {
        width: 100%;
        box-shadow: none;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}
