/* Custom styling for larger logo */

/* Make the logo bigger and more prominent with maximum specificity */
#site-head #blog-logo,
#blog-logo {
    max-height: 300px !important; /* Massively increased for maximum prominence */
    min-height: 250px !important; /* Force minimum size */
    width: auto !important;
    margin-bottom: 40px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) !important;
    transition: transform 0.3s ease !important;
    height: auto !important;
}

#site-head #blog-logo:hover,
#blog-logo:hover {
    transform: scale(1.05) !important;
}

/* Style the tagline below the logo */
.blog-description {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.1em !important;
    color: #fff !important;
}

.blog-description sup {
    font-size: 0.7em !important;
    vertical-align: super !important;
}

/* Remove the white background from the Peace Love Pizza section */
.title-and-description-guard {
    background-color: transparent !important;
    padding: 0.6em !important;
}

/* Mobile responsiveness with high specificity */
@media (max-width: 768px) {
    #site-head #blog-logo,
    #blog-logo {
        max-height: 450px !important; /* Significantly increased for bigger mobile logo */
        min-height: 250px !important; /* Force minimum size on mobile */
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    #site-head #blog-logo,
    #blog-logo {
        max-height: 200px !important; /* Increased from 120px for bigger small mobile logo */
        min-height: 120px !important; /* Force minimum size on small mobile */
        margin-bottom: 10px !important;
    }
    
    .blog-title {
        font-size: 1.8rem !important;
    }
    
    .blog-description {
        font-size: 0.9rem !important;
    }
}

/* Add some visual hierarchy */
#site-head-content .title-and-description-guard {
    margin-top: 10px !important;
}

/* Ensure the logo has prominence on the header */
#site-head-content {
    text-align: center !important;
}

/* Hide the blog title in the header */
.blog-title {
    display: none !important;
}

/* Facebook Happenings Section Styling */
.facebook-events-container,
.facebook-posts-container {
    margin: 1.5rem 0;
}

.facebook-event-compact,
.facebook-post-compact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #1877f2;
    transition: all 0.3s ease;
}

.facebook-event-compact:hover,
.facebook-post-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.facebook-event-compact.event-today {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.facebook-event-compact.event-tomorrow {
    border-left-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

/* Enhanced event styling for new features */
.events-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid #3498db;
}

.event-types-legend {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.event-types-legend li {
    font-size: 0.9rem;
    color: #ecf0f1;
    margin: 0;
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.event-type {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.event-type.recurring {
    color: #9b59b6;
    animation: pulse 2s infinite;
}

.event-type.attending {
    color: #3498db;
}

.event-type.guest {
    color: #f39c12;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.attending-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.event-location {
    font-size: 0.9rem;
    color: #95a5a6;
    margin: 0.3rem 0;
}

/* Improved event cards layout */
.event-preview,
.post-preview {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.event-image-thumb,
.post-image-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.event-image-thumb img,
.post-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details,
.post-text {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: inherit;
    line-height: 1.3;
}

.event-date,
.post-meta {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-location {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.post-text p {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.event-link,
.read-more {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.event-link:hover,
.read-more:hover {
    color: #166fe5;
    text-decoration: underline;
}

.facebook-section-footer {
    text-align: center;
    margin: 2rem 0 1rem 0;
}

.facebook-view-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0.5rem;
    box-shadow: 0 3px 6px rgba(24, 119, 242, 0.3);
    min-width: 200px;
}

.facebook-view-more-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    color: white;
    text-decoration: none;
}

.facebook-view-more-btn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    opacity: 0.7;
}

.no-events,
.no-posts {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-events p,
.no-posts p {
    margin: 0.5rem 0;
}

.no-events a,
.no-posts a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.no-events a:hover,
.no-posts a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for Facebook sections */
@media (max-width: 768px) {
    .event-preview,
    .post-preview {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .event-image-thumb,
    .post-image-thumb {
        width: 100%;
        height: 150px;
        align-self: center;
    }
    
    .facebook-event-compact,
    .facebook-post-compact {
        padding: 0.75rem;
    }
    
    .facebook-view-more-btn {
        display: block;
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        min-width: auto;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 1.2rem;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .event-title {
        font-size: 1.3rem;
    }
    
    .event-date,
    .post-meta {
        font-size: 1.2rem;
    }
    
    .post-text p {
        font-size: 1.2rem;
    }
    
    .event-link,
    .read-more {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .facebook-events-container,
    .facebook-posts-container {
        margin: 1rem 0;
    }
    
    .facebook-event-compact,
    .facebook-post-compact {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-date,
    .post-meta {
        font-size: 1.1rem;
    }
    
    .post-text p {
        font-size: 1.1rem;
    }
    
    .event-link,
    .read-more {
        font-size: 1.1rem;
    }
    
    .facebook-view-more-btn {
        display: block;
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        min-width: auto;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 1.1rem;
        text-align: center;
        padding: 0.8rem 1rem;
    }
}

/* Pre-Footer Tagline Styling */
.pre-footer-tagline {
    text-align: center;
    padding: 2rem 0 1rem 0;
    background: transparent;
}

.pre-footer-tagline .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pre-footer-tagline p {
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    margin: 0;
    letter-spacing: 0.05em;
}

.pre-footer-tagline sup {
    font-size: 0.7em;
    vertical-align: super;
}

/* Mobile responsiveness for pre-footer tagline */
@media (max-width: 768px) {
    .pre-footer-tagline {
        padding: 1.5rem 0 0.5rem 0;
    }
    
    .pre-footer-tagline p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .pre-footer-tagline {
        padding: 1rem 0 0.5rem 0;
    }
    
    .pre-footer-tagline p {
        font-size: 1.1rem;
    }
}

/* Footer Logo Styling */
.footer-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 120px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

/* Mobile responsiveness for footer logo */
@media (max-width: 768px) {
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-logo img {
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        margin-bottom: 0.8rem;
    }
    
    .footer-logo img {
        max-height: 80px;
    }
}

/* Footer sections spacing control */
.site-footer .links {
    margin: 1rem 0 0.5rem 0;
}

.site-footer .icons {
    margin: 0.5rem 0;
}

.site-footer .copyright {
    margin: 0.5rem 0 0 0;
}

.site-footer .copyright p {
    margin: 0;
}

/* Reduce overall footer section spacing */
.site-footer section {
    margin-bottom: 0.5rem;
}

.site-footer section:last-child {
    margin-bottom: 0;
}
