/**
 * Yalla News Syria - Custom CSS
 */

/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #28a745;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e7e34;
    text-decoration: none;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 160px;
}

/* Navigation */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.2rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Categories Navigation */
.categories-nav {
    border-bottom: 1px solid #dee2e6;
}

.categories-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.categories-menu .nav-item {
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.categories-menu .nav-link {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.categories-menu .nav-link:hover,
.categories-menu .nav-link.active {
    color: #fff;
    background-color: #28a745;
}

@media (max-width: 767.98px) {
    .categories-menu {
        justify-content: center;
    }
    
    .categories-menu .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Breadcrumbs */
.breadcrumb {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Main Content */
.site-main {
    min-height: 600px;
}

/* Article Cards */
.article-card {
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-title {
    font-weight: 700;
    line-height: 1.4;
}

.article-card .card-text {
    color: #6c757d;
}

.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.article-meta i {
    margin-left: 5px;
}

/* Featured Slider */
.featured-slider {
    margin-bottom: 2rem;
}

.featured-slide {
    position: relative;
    height: 400px;
}

.featured-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-slide .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
}

.featured-slide .slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-slide .slide-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Single Article */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta-full {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.article-featured-image {
    margin-bottom: 1.5rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: 5px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-tags {
    margin: 2rem 0;
}

.article-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.article-tags .badge:hover {
    background-color: #e9ecef;
}

.article-share {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.article-share .btn {
    margin-left: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    text-align: center;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
}

.related-articles .card-title {
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar .card-header {
    background-color: #f8f9fa;
    font-weight: 700;
}

.sidebar .media img {
    border-radius: 5px;
}

/* Tag Cloud */
.tag-cloud {
    line-height: 2;
}

.tag-cloud a {
    display: inline-block;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #28a745;
    color: #fff;
}

.tag-cloud .tag-size-1 { font-size: 0.8rem; }
.tag-cloud .tag-size-2 { font-size: 0.9rem; }
.tag-cloud .tag-size-3 { font-size: 1rem; }
.tag-cloud .tag-size-4 { font-size: 1.1rem; }
.tag-cloud .tag-size-5 { font-size: 1.2rem; }

/* Category and Tag Archives */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
}

.archive-description {
    color: #6c757d;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: #28a745;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
}

.site-footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    z-index: 99;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #1e7e34;
    color: #fff;
}

/* Custom Tag Styling */

/* Tag styling - using the same style as tag-cloud */
.tag-badge {
    display: inline-block;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
}

/* Tag count styling - smaller size */
.tag-count {
    display: inline-block;
    background-color: rgba(0,0,0,0.1);
    color: #333;
    border-radius: 4px;
    padding: 1px 4px; /* Smaller padding */
    font-size: 0.7em; /* Smaller font size */
    margin-left: 3px;
    vertical-align: middle;
}

/* Enhanced tag cloud layout */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    gap: 5px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
    
    .featured-slide {
        height: 350px;
    }
    
    .featured-slide .slide-title {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    /* Header adjustments for tablets */
    .logo img {
        max-height: 120px;
    }
    
    /* Categories navigation for tablets */
    .categories-menu {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    /* Mobile header improvements */
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar .row {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .top-bar .social-icons {
        justify-content: center;
        display: flex;
    }
    
    /* Logo sizing for mobile */
    .logo img {
        max-height: 80px;
    }
    
    /* Header layout for mobile */
    .site-header .container .row {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .site-header .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Navigation improvements */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    /* Search form mobile */
    .form-inline {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-inline .input-group {
        width: 100%;
    }
    
    /* Categories navigation mobile */
    .categories-nav {
        padding: 0.5rem 0;
    }
    
    .categories-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .categories-menu .nav-item {
        margin: 0.25rem;
    }
    
    .categories-menu .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Featured slider mobile */
    .featured-slide {
        height: 300px;
    }
    
    .featured-slide .slide-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .featured-slide .slide-content {
        padding: 1.5rem;
    }
    
    /* Article cards mobile */
    .article-card .card-img-top {
        height: 180px;
    }
    
    .article-card .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .article-card .card-text {
        font-size: 0.9rem;
    }
    
    /* Article content mobile */
    .article-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Sidebar mobile */
    .sidebar {
        margin-top: 2rem;
    }
    
    .sidebar .card {
        margin-bottom: 1.5rem;
    }
    
    /* Tag cloud mobile */
    .tag-cloud {
        text-align: center;
    }
    
    .tag-cloud .tag-badge {
        margin: 0.25rem;
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* Breadcrumbs mobile */
    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    /* Main content spacing */
    .site-main {
        padding: 1.5rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Extra small mobile devices */
    body {
        font-size: 14px;
    }
    
    /* Top bar mobile */
    .top-bar {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
    
    .top-bar .social-icons a {
        width: 25px;
        height: 25px;
        line-height: 25px;
        margin: 0 0.25rem;
    }
    
    /* Header mobile */
    .logo img {
        max-height: 60px;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    /* WhatsApp banner mobile optimization */
    .whatsapp-channel-box-mobile {
        padding: 6px 8px;
        margin-bottom: 8px;
        border-radius: 6px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .whatsapp-channel-box-mobile .d-flex {
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-icon {
        margin-left: 6px;
        flex-shrink: 0;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-icon i {
        font-size: 1.3rem;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-text {
        flex: 1;
        min-width: 0;
        padding: 0 4px;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-text h6 {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-text small {
        font-size: 0.65rem;
        line-height: 1;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .whatsapp-channel-box-mobile .whatsapp-button {
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .whatsapp-channel-box-mobile .btn {
        padding: 3px 8px;
        font-size: 0.65rem;
        line-height: 1.2;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Categories mobile */
    .categories-menu .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Featured slider mobile */
    .featured-slide {
        height: 250px;
    }
    
    .featured-slide .slide-content {
        padding: 1rem;
    }
    
    .featured-slide .slide-title {
        font-size: 1.1rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .featured-slide .slide-excerpt {
        display: none;
    }
    
    .featured-slide .slide-meta {
        font-size: 0.8rem;
    }
    
    /* Article cards mobile */
    .article-card .card-img-top {
        height: 160px;
    }
    
    .article-card .card-title {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .article-card .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .article-meta {
        font-size: 0.75rem;
    }
    
    /* Single article mobile */
    .article-title {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .article-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .article-content p {
        margin-bottom: 1rem;
    }
    
    /* Sidebar mobile */
    .sidebar .card-header {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .sidebar .card-body {
        padding: 0.75rem;
    }
    
    .sidebar .media img {
        width: 50px;
        height: 50px;
    }
    
    .sidebar .media-body h6 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    /* Tag cloud mobile */
    .tag-cloud .tag-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        margin: 0.2rem;
    }
    
    .tag-count {
        font-size: 0.6em;
        padding: 1px 3px;
    }
    
    /* Pagination mobile */
    .pagination {
        justify-content: center;
    }
    
    .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Container spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Section spacing */
    .site-main {
        padding: 1rem 0;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    /* Form elements mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Back to top button mobile */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .article-card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .social-icons a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .featured-slide {
        height: 200px;
    }
    
    .featured-slide .slide-content {
        padding: 0.75rem;
    }
    
    .featured-slide .slide-title {
        font-size: 1rem;
    }
}

/* Mobile-specific enhancements */
.is-mobile .article-card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.is-touch .btn,
.is-touch .nav-link,
.is-touch .article-card {
    transition: all 0.2s ease;
}

/* Improve tap targets for mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding: 0.6rem 1.2rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-icons a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .categories-menu .nav-link {
        min-height: 40px;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .site-main {
        min-height: calc(100vh - 200px);
    }
}

/* Prevent text selection on touch devices for UI elements */
.is-touch .btn,
.is-touch .nav-link,
.is-touch .navbar-toggler,
.is-touch .slick-dots,
.is-touch .back-to-top {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Improve form inputs on mobile */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 0.375rem;
    }
    
    .input-group .form-control {
        border-top-right-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }
    
    .input-group-append .btn {
        border-top-left-radius: 0.375rem;
        border-bottom-left-radius: 0.375rem;
    }
}

/* Mobile slider improvements */
@media (max-width: 767.98px) {
    .slick-dots {
        bottom: 15px;
    }
    
    .slick-dots li {
        margin: 0 3px;
    }
    
    .slick-dots li button {
        width: 8px;
        height: 8px;
    }
    
    .slick-dots li button:before {
        font-size: 8px;
        width: 8px;
        height: 8px;
    }
}

/* Mobile navigation improvements */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: rgba(40, 167, 69, 0.95);
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.375rem;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
}

/* Improve WhatsApp banner for mobile */
@media (max-width: 575.98px) {
    .whatsapp-channel-box-mobile {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    }
    
    .whatsapp-channel-box-mobile:active {
        transform: scale(0.98);
    }
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .featured-slider {
        animation: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* WhatsApp Modal Styles */
.whatsapp-modal {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.whatsapp-modal .modal-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 10px 20px;
    position: relative;
}

.whatsapp-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    text-shadow: none;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}

.whatsapp-modal .modal-header .close:hover {
    opacity: 1;
    color: white;
}

.whatsapp-modal .modal-body {
    background: white;
    padding: 2rem 1.5rem;
}

.whatsapp-modal-content {
    text-align: center;
}

.whatsapp-icon-large {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.whatsapp-icon-large i {
    animation: pulse 2s infinite;
}

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

.whatsapp-modal .modal-title {
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
}

.whatsapp-modal .modal-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.features-list {
    text-align: right;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-item i {
    color: #25D366;
    margin-left: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #555;
    flex: 1;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.btn-whatsapp:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
    color: white;
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Modal backdrop */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Mobile responsive modal */
@media (max-width: 767.98px) {
    .whatsapp-modal .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .whatsapp-icon-large {
        font-size: 3rem;
    }
    
    .whatsapp-modal .modal-title {
        font-size: 1.3rem;
    }
    
    .whatsapp-modal .modal-description {
        font-size: 0.9rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .btn-whatsapp {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .features-list {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem 0.5rem;
    }
    
    .whatsapp-modal .modal-body {
        padding: 1rem 0.75rem;
    }
    
    .whatsapp-icon-large {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .whatsapp-modal .modal-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .whatsapp-modal .modal-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .features-list {
        margin-bottom: 1rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-whatsapp {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Animation for modal entrance */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Print styles */
@media print {
    .top-bar,
    .navbar,
    .categories-nav,
    .sidebar,
    .site-footer,
    .back-to-top,
    .whatsapp-channel-box,
    .whatsapp-channel-box-mobile,
    .modal,
    .modal-backdrop {
        display: none !important;
    }
    
    .site-main {
        padding: 0 !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-title {
        font-size: 18pt;
        margin-bottom: 1rem;
    }
}
