/*
Theme Name: Brandrums Theme
Theme URI: https://brandrums.com
Author: Brandrums
Description: Custom theme matching Brandrums Next.js site
Version: 1.0
Text Domain: brandrums
*/

/* ============================================
   CSS Reset & Base
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px;
}

@media (min-width: 768px) {
    body {
        padding-top: 120px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   Header Styles
============================================ */
.site-header {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .site-header {
        top: 40px;
    }
}

.header-container {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 9999px;
    padding: 12px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.header-logo img {
    height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 48px;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #2f48e0;
}

/* Header Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
    }
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f48e0;
    font-weight: 600;
    font-size: 14px;
}

.phone-link svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 75%;
    background: #f3f4f6;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 24px 16px;
    border-bottom: 1px solid #d1d5db;
}

.mobile-nav-header img {
    height: 40px;
    width: auto;
}

.mobile-nav ul {
    overflow-y: auto;
}

.mobile-nav li {
    border-bottom: 1px solid #d1d5db;
}

.mobile-nav a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #4b5563;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: #2f48e0;
    background: #e5e7eb;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* ============================================
   Footer Styles
============================================ */
.site-footer {
    background: #1B1B1B;
    padding: 64px 16px 128px;
    margin-top: 64px;
    position: relative;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 80px 16px 128px;
    }
}

.footer-container {
    max-width: 1152px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }
}

/* Footer Brand */
.footer-brand {
    max-width: 320px;
}

.footer-brand img {
    /*height: 80px;*/
    width: 160px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #2f48e0, #1a2eb0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.85;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Footer Columns */
.footer-column {
    max-width: 280px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid #2f48e0;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column a {
    font-size: 14px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #6b7fff;
}

/* Footer Contact */
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact li {
    font-size: 14px;
    color: #ffffff;
}

.footer-contact .payment-img {
    height: 32px;
    width: auto;
    margin-top: 12px;
}

/* Footer Bottom */
.footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    padding: 24px 16px;
}

.footer-bottom-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom span {
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-legal {
        flex-direction: row;
        gap: 40px;
    }
}

.footer-legal a {
    font-size: 14px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #6b7fff;
}

/* ============================================
   Blog Listing Styles
============================================ */
.blog-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 40px 16px;
}

.blog-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #111827;
}

@media (min-width: 768px) {
    .blog-title {
        font-size: 36px;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.blog-card-placeholder {
    width: 100%;
    height: 192px;
    background: linear-gradient(to right, #2f48e0, #1a2eb0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

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

/* Blog Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.blog-category {
    font-size: 12px;
    font-weight: 500;
    color: #2f48e0;
    background: #eef1ff;
    padding: 4px 12px;
    border-radius: 9999px;
}

.blog-read-time {
    font-size: 12px;
    color: #6b7280;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #111827;
}

.blog-card-title a:hover {
    color: #2f48e0;
}

/* Blog Excerpt */
.blog-card-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Read More Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f48e0;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

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

.read-more-link svg {
    width: 16px;
    height: 16px;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 16px;
}

.no-posts h2 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.no-posts p {
    color: #6b7280;
}

/* ============================================
   Single Post Styles
============================================ */
.single-post-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 40px 16px;
}

.single-post-header {
    margin-bottom: 40px;
}

.single-post-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #2f48e0;
    background: #eef1ff;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.single-post-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #111827;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 36px;
    }
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-author span {
    font-weight: 500;
    color: #374151;
}

.single-post-featured-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #111827;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #111827;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #111827;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: #2f48e0;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1a2eb0;
}

.post-content blockquote {
    border-left: 4px solid #2f48e0;
    padding: 20px 24px;
    margin: 28px 0;
    background: #f3f4f6;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.post-content img {
    border-radius: 12px;
    margin: 28px 0;
}

.post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
}

.post-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.post-tags a {
    font-size: 14px;
    color: #4b5563;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #eef1ff;
    color: #2f48e0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.post-nav-link {
    max-width: 45%;
}

.post-nav-link span {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-link p {
    font-weight: 500;
    color: #374151;
    margin-top: 4px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-link:hover p {
    color: #2f48e0;
}

.post-nav-link.next {
    text-align: right;
}

/* ============================================
   Pagination
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a {
    background: #ffffff;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background: #2f48e0;
    color: #ffffff;
}

.pagination .current {
    background: #2f48e0;
    color: #ffffff;
}

/* ============================================
   WordPress Core Styles
============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}