/*
Theme Name: Shield My Crypto
Theme URI: https://shieldmycrypto.com
Author: Shield My Crypto
Author URI: https://shieldmycrypto.com
Description: Shield My Crypto - Protecting your digital assets with expert crypto security education. Clear, step-by-step guidance to protect your wallets, accounts, and digital assets from scams, hacks, and costly mistakes.
Version: 1774622486
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shieldmycrypto
Tags: blog, one-column, two-columns, custom-menu, featured-images, full-width-template, post-formats, theme-options, translation-ready, crypto, security

Shield My Crypto WordPress Theme
(C) 2024 Shield My Crypto
*/

/* 
 * Note: Main styles are loaded from the css/ folder via wp_enqueue_style in functions.php
 * This file contains the theme header and any WordPress-specific style overrides
 */

/* WordPress Core Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Block Editor Styles */
.wp-block {
    max-width: 100%;
}

/* Comments styles */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Sticky posts */
.sticky {
    display: block;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5em;
}

.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%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Blog Page Specific Styles */
.blog-page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.blog-page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-page-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c75cd;
    margin-bottom: 20px;
}

.blog-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.blog-page-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.blog-page-section {
    padding: 0 20px 80px;
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-featured {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .blog-card-featured {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }
    
    .blog-card-featured .blog-card-image-wrapper {
        height: 100%;
        min-height: 400px;
    }
    
    .blog-card-featured .blog-card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }
    
    .blog-card-featured .blog-card-title {
        font-size: 28px;
    }
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-featured .blog-card-link {
    display: contents;
}

.blog-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2c75cd;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c75cd;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-read-more {
    gap: 12px;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.blog-pagination-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.blog-pagination-btn:hover:not(.disabled) {
    background: #2c75cd;
    transform: translateY(-2px);
}

.blog-pagination-btn.disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.blog-pagination-info {
    font-size: 14px;
    color: #666;
}

/* Blog Empty/Error States */
.blog-page-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.blog-page-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.blog-page-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.blog-page-empty-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Blog Newsletter Section */
.blog-page-newsletter {
    background: #f8f9fa;
    padding: 80px 20px;
    margin-top: 40px;
}

/* Contact page styles */
.contact-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    max-width: 600px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.contact-input {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.contact-input:focus {
    border-color: #2c75cd;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
    outline: none;
}

.contact-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.contact-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.contact-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-checkbox-input:checked + .contact-checkbox-custom {
    background: #2c75cd;
    border-color: #2c75cd;
}

.contact-checkbox-input:checked + .contact-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.contact-checkbox-label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.contact-form-submit {
    margin-top: 8px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: #2c75cd;
    transform: translateY(-2px);
}

.contact-success-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #d4edda;
    border-radius: 12px;
    color: #155724;
}

.contact-success-icon {
    width: 40px;
    height: 40px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-success-text {
    font-size: 16px;
    line-height: 1.5;
}

.contact-error-message {
    padding: 16px 20px;
    background: #f8d7da;
    border-radius: 8px;
    color: #721c24;
    margin-bottom: 24px;
}

/* Featured circle logo */
.featured-circle-logo {
    filter: none;
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
}

/* 404 page filter image */
.filter-image {
    max-width: 170px;
    max-height: 90px;
    width: auto;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-page-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-pagination-inner {
        flex-direction: column;
    }
    
    .blog-page-hero {
        padding: 60px 20px;
    }
}
