/**
 * SEO Theme Tại Jun88 - Custom Styles
 * 
 * Additional styles for Jun88 WordPress theme
 */

/* ===================================
   Additional Component Styles
   =================================== */

/* CTA Buttons Enhanced */
.btn-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::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-cta:hover::before {
    left: 100%;
}

/* Active link states */
.current-menu-item a,
.current_page_item a {
    color: var(--accent-color) !important;
    background-color: rgba(100, 255, 218, 0.1) !important;
}

/* Sticky header enhanced */
.site-header.sticky {
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.98) 0%, rgba(10, 25, 47, 0.98) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Notification for mobile menu */
.mobile-menu-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #8892b0;
}

.breadcrumb a {
    color: #64ffda;
    transition: all 0.3s ease;
}

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

.breadcrumb-separator {
    margin: 0 10px;
    color: #8892b0;
}

.breadcrumb-current {
    color: #ccd6f6;
}

/* Contact Form Styles */
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.contact-form button[type="submit"] {
    transition: all 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #4cdbc0;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation a {
    color: #ccd6f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    color: #64ffda;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    color: #8892b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    color: #64ffda;
}

.pagination .current {
    background-color: #64ffda;
    color: #0a192f;
    border-color: #64ffda;
}

/* Comments Section */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(10, 25, 47, 0.5);
    border-radius: 8px;
    border-left: 3px solid #64ffda;
}

.comment-author {
    color: #64ffda;
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 0.85rem;
    color: #8892b0;
    margin-bottom: 15px;
}

.comment-body {
    color: #ccd6f6;
    line-height: 1.7;
}

.comment-reply-link {
    color: #64ffda;
    font-size: 0.9rem;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #4cdbc0;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px 0 0 4px;
    background-color: rgba(10, 25, 47, 0.8);
    color: #ccd6f6;
    font-size: 1rem;
}

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

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

.search-submit:hover {
    background-color: #4cdbc0;
}

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(17, 34, 64, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.widget-title {
    color: #64ffda;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
}

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

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.05);
}

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

.widget a {
    color: #8892b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget a:hover {
    color: #64ffda;
    padding-left: 5px;
}

/* Blockquote */
blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: rgba(100, 255, 218, 0.05);
    border-left: 4px solid #64ffda;
    border-radius: 4px;
    font-style: italic;
    color: #ccd6f6;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #8892b0;
}

/* Code Blocks */
pre, code {
    background-color: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

pre {
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    padding: 2px 6px;
    font-size: 0.9em;
    color: #64ffda;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: rgba(17, 34, 64, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: #ccd6f6;
}

table th {
    background-color: rgba(10, 25, 47, 0.8);
    color: #64ffda;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

table tr:hover {
    background-color: rgba(100, 255, 218, 0.05);
}

/* Image Caption */
.wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.wp-caption-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8892b0;
    font-style: italic;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8892b0;
}

/* Alert/Notice Boxes */
.alert {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(100, 255, 218, 0.05);
    border-color: #64ffda;
    color: #ccd6f6;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ccd6f6;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #ccd6f6;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #ccd6f6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #64ffda;
    color: #0a192f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #4cdbc0;
    transform: translateY(-5px);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(100, 255, 218, 0.1);
    border-top: 3px solid #64ffda;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        width: 100%;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .nav-desktop,
    .nav-mobile,
    .menu-toggle,
    .scroll-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
