/*
Theme Name: Cryptobots Blog
Theme URI: https://cryptobots.io/blog
Author: Cryptobots.io
Author URI: https://cryptobots.io/
Description: The official Cryptobots.io blog - your ultimate destination for automated crypto trading insights, strategies, and educational content. Learn about DeFi, trading bots, and cryptocurrency automation.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: cryptocurrency, trading, automation, blog, responsive, seo-optimized, crypto-bots, defi
Text Domain: cryptobots-blog
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/*
This is a placeholder file. The main styles are in the /css directory from the Webflow export.
Those will need to be enqueued in functions.php.
*/

/* CSS Overrides for Dynamic WordPress Posts */

/* Fix heading responsiveness - override Webflow negative margins */
.heading {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    padding: 0 1rem !important;
    width: 100% !important;
}

/* Fix section container alignment to match blog posts container */
.section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
}

@media screen and (max-width: 991px) {
    .heading {
        margin-left: 0 !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
}

@media screen and (max-width: 767px) {
    .heading {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        padding: 0 1rem !important;
        font-size: 24px !important;
    }
}

@media screen and (max-width: 479px) {
    .heading {
        margin-left: 0 !important;
        text-align: center !important;
        padding: 0 0.5rem !important;
        font-size: 20px !important;
        line-height: 26px !important;
    }
}

/* Fix grid to allow unlimited posts in 2-column layout */
.grid-2 {
    grid-template-rows: auto !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
    justify-items: center !important;
    gap: 2rem !important;
}

/* Responsive grid fixes */
/* Tablet grid: 2 columns but smaller cards */
@media screen and (max-width: 991px) and (min-width: 768px) {
    .grid-2 {
        gap: 1.5rem !important;
    }
    
    .post-card {
        max-width: 350px;
    }
}

@media screen and (max-width: 767px) {
    .grid-2 {
        grid-template-rows: auto !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1.5rem !important;
    }
    
    .post-card {
        max-width: 90%;
        width: 100%;
    }
}

@media screen and (max-width: 479px) {
    .grid-2 {
        grid-template-rows: auto !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1rem !important;
    }
    
    .post-card {
        max-width: 95%;
        width: 100%;
        height: 400px;
        min-height: 400px;
    }
    
    .post-card img {
        height: 180px;
    }
}

/* Style improvements for post cards */
.post-card {
    display: flex;
    flex-direction: column;
    height: 450px;
    width: 100%;
    max-width: 400px;
    min-height: 450px;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    order: -1;
    border-radius: 8px;
    margin: 0 0 1rem 0;
    flex-shrink: 0;
}

.post-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.post-card h2 a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card h2 a:hover {
    color: #02be89;
}

.post-card p {
    margin: 0.5rem 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.post-card .read-more {
    color: #02be89;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    padding-top: 1rem;
    display: inline-block;
    align-self: flex-start;
}

.post-card .read-more:hover {
    text-decoration: underline;
}

/* Single Post Styles */
.single-post {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 4rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-title {
    color: #02be89;
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-family: 'Jura Variablefont Wght', Arial, sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-content {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.post-content p {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.post-content h1, .post-content h2, .post-content h3 {
    color: #02be89;
    margin: 2rem 0 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-to-blog {
    color: #02be89;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: 2px solid #02be89;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background-color: #02be89;
    color: white;
}

/* Enhanced responsive design for tablet and mobile */

/* Tablet improvements (768px - 991px) */
@media screen and (max-width: 991px) and (min-width: 768px) {
    .post-card {
        max-width: 350px;
    }
    
    .post-card h2 {
        font-size: 1.15rem;
    }
    
    .single-post {
        padding: 2rem 3rem;
        margin: 1rem;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
}

/* Tablet responsive styles */
@media screen and (max-width: 767px) {
    .single-post {
        padding: 1.5rem 2rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .post-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .post-featured-image img {
        max-width: 100%;
        max-height: 300px;
    }
    
    .post-meta {
        font-size: 0.85rem;
    }
    
    .post-meta span {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
}

/* Mobile responsive styles */
@media screen and (max-width: 479px) {
    .single-post {
        padding: 1rem 1.5rem;
        margin: 0.25rem;
        border-radius: 6px;
    }
    
    .post-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .post-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .post-content h1, .post-content h2, .post-content h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .post-featured-image img {
        max-height: 250px;
    }
    
    .post-meta {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .post-header {
        margin-bottom: 1.5rem;
    }
    
    .post-content p {
        margin-bottom: 1.25rem;
    }
    
    .post-content ul, .post-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .back-to-blog {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .post-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* SEO and accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Post card meta styling */
.post-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.post-card-meta time {
    color: #02be89;
    font-weight: 500;
}

/* Focus states for accessibility */
.post-card a:focus,
.read-more:focus {
    outline: 2px solid #02be89;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Improved card structure */
.post-card-header h2 {
    margin: 1rem 0 0.5rem 0;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Breadcrumb navigation styling */
.breadcrumb {
    margin: 1rem 0;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: " / ";
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb a {
    color: #02be89;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Tags styling */
.post-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.post-tags h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: #f0f9f6;
    color: #02be89;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #02be89;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #02be89;
    color: white;
}

/* Social sharing styling - Modern Design */
.social-sharing {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f6 100%);
    border-radius: 16px;
    border: 1px solid rgba(2, 190, 137, 0.1);
    text-align: center;
}

.social-sharing h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.sharing-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.sharing-buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sharing-buttons a::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;
}

.sharing-buttons a:hover::before {
    left: 100%;
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.share-twitter:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.share-facebook {
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.share-facebook:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.share-linkedin:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Add icons using CSS (optional - can be replaced with actual icons) */
.share-twitter::before {
    content: "𝕏";
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.share-facebook::before {
    content: "📘";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.share-linkedin::before {
    content: "💼";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Reading time styling */
.reading-time {
    color: #02be89;
    font-weight: bold;
}

/* Single post meta improvements */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.post-meta time,
.post-meta .reading-time {
    color: #02be89;
    font-weight: 500;
}

.post-meta a {
    color: #02be89;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Mobile optimizations for new elements */
@media screen and (max-width: 768px) {
    .social-sharing {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .sharing-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sharing-buttons a {
        min-width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 479px) {
    .social-sharing {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .social-sharing h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .sharing-buttons {
        gap: 0.5rem;
    }
    
    .sharing-buttons a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 100%;
    }
    
    .tag-list {
        justify-content: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-meta time,
    .post-meta .reading-time,
    .post-meta span {
        display: block;
    }
} 