/* blog-styles.css - Garland Powersports Ltd Blog Styling */

:root {
    --primary-color: #1C1C1C;
    --accent-red: #FF3B30;
    --accent-orange: #FF6A00;
    --secondary-silver: #C0C0C0;
    --electric-lime: #CCFF00;
    --electric-cyan: #00FFFF;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --bg-dark: #0A0A0A;
    --bg-darker: #060606;
}

/* Blog Wrapper */
.blog-wrapper {
    background: var(--primary-color);
    min-height: 100vh;
    color: var(--text-white);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary-color) 50%, var(--bg-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--accent-red) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--accent-orange) 0%, transparent 50%);
    opacity: 0.1;
    z-index: 1;
}

.page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.header-content {
    flex: 1;
}

.page-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--text-white), var(--secondary-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 500px;
}

.header-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 80px 0;
}

/* Filtered Results */
.filtered-results {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 15px;
    border: 1px solid var(--accent-red);
}

.filter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-info h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 0;
    letter-spacing: 0.05em;
}

.btn-clear {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-clear:hover {
    background: var(--accent-red);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Individual Blog Post */
.blog-post {
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 59, 48, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.blog-post:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 20px 40px rgba(255, 59, 48, 0.2);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.post-date {
    background: var(--accent-red);
    color: var(--text-white);
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 0.05em;
    min-width: 60px;
}

.post-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.post-date .month {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Post Content */
.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-category {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.read-time {
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time i {
    color: var(--accent-red);
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 1.4rem;
    color: var(--text-white);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: var(--accent-red);
}

.post-excerpt {
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 59, 48, 0.2);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.9rem;
}

.author-name {
    font-family: 'Bebas Neue', Arial, sans-serif;
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.read-more {
    color: var(--accent-red);
    text-decoration: none;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 15px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.pagination-info {
    font-family: 'Bebas Neue', Arial, sans-serif;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-link {
    padding: 10px 15px;
    background: transparent;
    color: var(--text-gray);
    text-decoration: none;
    border: 2px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover,
.page-link.active {
    background: var(--accent-red);
    color: var(--text-white);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-dark);
    border-radius: 20px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.no-posts-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: var(--text-white);
}

.no-posts h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.no-posts p {
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Styling */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.1);
}

.sidebar-widget h3 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    border-radius: 2px;
}

/* Categories List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary-color);
    border-radius: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: var(--accent-red);
    color: var(--text-white);
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.category-count {
    background: var(--accent-red);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.no-categories,
.no-recent-posts {
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 59, 48, 0.1);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-link:hover {
    transform: translateY(-2px);
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
}

.recent-post-content {
    flex: 1;
}

.recent-post-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-post-link:hover h4 {
    color: var(--accent-red);
}

.recent-post-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 70%, var(--electric-lime) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, var(--electric-cyan) 0%, transparent 50%);
    opacity: 0.1;
    z-index: 1;
}

.newsletter-widget > * {
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--text-white);
}

.newsletter-widget h3 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.newsletter-widget h3::after {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.input-group input::placeholder {
    color: rgba(28, 28, 28, 0.6);
}

.input-group input:focus {
    outline: none;
    background: var(--text-white);
}

.input-group button {
    padding: 12px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-group button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}

.newsletter-benefits span {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-benefits i {
    color: var(--electric-lime);
    font-size: 0.7rem;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 12px;
    background: var(--primary-color);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: var(--accent-red);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    font-family: 'Bebas Neue', Arial, sans-serif;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .page-header .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .header-visual {
        order: -1;
    }
    
    .header-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .blog-sidebar {
        position: static;
        order: 2;
    }
    
    .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .blog-container {
        padding: 60px 0;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
    
    .filter-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }
    
    .blog-container {
        padding: 40px 0;
    }
    
    .post-content {
        padding: 25px 20px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .recent-post-link {
        flex-direction: column;
        gap: 10px;
    }
    
    .recent-post-image {
        width: 100%;
        height: 120px;
    }
    
    .tags-cloud {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}