/*
Theme Name: Superfast Safelink
Theme URI: https://themeson.com/themes/superfast-safelink
Author: Themeson
Author URI: https://themeson.com
Description: A modern WordPress blog theme with Bootstrap 5.3 featuring a clean layout, responsive design, and sidebar widgets. Perfect for article blogs and content-driven websites.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: superfast-safelink
Tags: blog, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Base Styles */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #48bb78;
    --accent-color: #ed64a6;
    --warning-color: #f6ad55;
    --info-color: #4299e1;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Header Styles */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.site-branding {
    padding: 1.5rem 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    text-decoration: none;
}

.site-description {
    color: var(--text-light);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

/* Navigation */
.main-navigation {
    background: var(--gradient-primary);
}

.main-navigation .navbar-nav .nav-link {
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}

/* Banner Area */
.banner-area {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
}

.donate-banner {
    background: var(--gradient-secondary);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.donate-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.donate-banner h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.donate-banner p {
    margin-bottom: 0;
    position: relative;
}

.donate-banner .btn-warning {
    background: var(--warning-color);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.4);
}

.donate-banner .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.5);
}

/* Content Area */
.content-area {
    padding: 3rem 0;
}

/* Post Styles */
.post {
    background-color: var(--bg-white);
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 1rem 1rem 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Category Badge */
.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.category-primary {
    background: var(--gradient-primary);
}

.category-secondary {
    background: var(--gradient-secondary);
}

.category-accent {
    background: var(--gradient-accent);
}

.category-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #63b3ed 100%);
}

.category-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbd38d 100%);
}

.entry-content {
    padding: 1.75rem;
}

.entry-header {
    position: relative;
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entry-meta .posted-on,
.entry-meta .byline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-meta .posted-on::before {
    content: '📅';
    font-size: 1rem;
}

.entry-meta .byline::before {
    content: '✍️';
    font-size: 1rem;
}

.entry-summary {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.entry-footer {
    margin-top: 1rem;
}

.entry-footer .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
}

.entry-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.comments-count {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.comments-count:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination-area {
    margin: 3rem 0;
    text-align: center;
}

.pagination {
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pagination .current,
.pagination .page-numbers:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Sidebar */
.widget-area {
    padding-left: 2rem;
}

.widget {
    background-color: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.widget-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1rem;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget ul li a {
    color: var(--text-color);
    text-decoration: none;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 50"%3E%3Cpath fill="%231e3c72" fill-opacity="1" d="M0,24L48,26.7C96,29,192,35,288,37.3C384,40,480,40,576,35.3C672,31,768,21,864,21.3C960,21,1056,29,1152,32.3C1248,35,1344,35,1392,34.7L1440,34L1440,50L1392,50C1344,50,1248,50,1152,50C1056,50,960,50,864,50C768,50,672,50,576,50C480,50,384,50,288,50C192,50,96,50,48,50L0,50Z"%3E%3C/path%3E%3C/svg%3E') no-repeat;
    background-size: cover;
}

.site-footer .widget-title {
    color: #fff;
    border-left-color: var(--accent-color);
}

.site-footer .widget-title::before {
    background: var(--gradient-accent);
}

.site-footer a {
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advertisement Areas */
.ad-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.ad-container span {
    position: relative;
    font-weight: 500;
    opacity: 0.7;
}

/* Search Form Styles */
.search-form {
    position: relative;
    background: var(--bg-white);
    border-radius: 50px;
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.search-form .search-field {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
}

.search-form .search-submit,
.search-form .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .search-submit:hover,
.search-form .btn-primary:hover {
    transform: scale(1.05);
}

/* Navbar Search Form */
.navbar-search-form {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 300px;
}

.navbar-search-form:focus-within {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.navbar-search-form .search-field {
    border: none;
    background: transparent;
    padding: 0.375rem 1rem;
    color: white;
    font-size: 0.875rem;
}

.navbar-search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-search-form .search-field:focus {
    outline: none;
    box-shadow: none;
    color: white;
}

.navbar-search-form .search-submit {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 0.375rem 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.navbar-search-form .search-submit:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Tag Cloud */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.875rem !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
}

/* Categories Widget */
.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.widget_categories li:hover {
    padding-left: 0.5rem;
    color: var(--primary-color);
}

.widget_categories li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.widget_categories li:hover a {
    color: var(--primary-color);
}

/* Recent Posts Widget */
.widget_recent_entries li {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.widget_recent_entries li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.widget_recent_entries li:hover::before {
    transform: translateX(5px);
}

.widget_recent_entries li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.widget_recent_entries li:hover a {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .widget-area {
        padding-left: 0;
        margin-top: 3rem;
    }

    .site-branding {
        text-align: center;
    }

    .main-navigation .navbar-nav {
        text-align: center;
    }
}

/* WordPress Core */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.sticky {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

.bypostauthor {
    background-color: var(--bg-light);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.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: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Single Post Styles */
.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .social-sharing {
    background: var(--gradient-accent);
}

/* Comments */
.comment-list .comment {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.comment-list .comment:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Advertisement Areas from Customizer */
.header-banner-area,
.homepage-ad-area,
.sidebar-ad-area {
    margin: 1rem 0;
    text-align: center;
}

.header-banner-area {
    max-width: 728px;
    margin-left: auto;
}

.homepage-ad-area {
    padding: 1rem 0;
}

.sidebar-ad-area {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

/* Responsive Advertisement */
@media (max-width: 768px) {
    .header-banner-area {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .header-banner-area ins,
    .header-banner-area iframe {
        max-width: 100%;
        height: auto;
    }
}