/* ==========================================================================
   BOUNCE'S UI/UX IMPROVEMENTS
   Applied globally - Better spacing, hierarchy, breathing room
   ========================================================================== */

/* ==========================================================================
   SPACING IMPROVEMENTS - More Breathing Room
   ========================================================================== */

/* Hero Section - More breathing room */
.hero-section {
    padding: 7rem 2rem 5rem !important; /* Increased from 6rem/4rem */
}

.hero-title {
    margin-bottom: 1.5rem !important; /* More space below title */
}

.hero-subtitle {
    margin-bottom: 2rem !important; /* More space below subtitle */
    line-height: 1.6 !important; /* Better line height */
}

/* Posts Grid - Better spacing */
.posts-grid {
    gap: 2rem !important; /* Increased from 1.5rem */
    margin-bottom: 3rem !important; /* More space below grid */
}

/* Post Cards - More padding and spacing */
.post-card {
    padding: 0 !important; /* Reset if needed */
    transition: all 0.3s ease !important; /* Smoother transitions */
}

.post-card-content {
    padding: 2rem !important; /* Increased from 1.5rem */
}

.post-card .post-title {
    margin-bottom: 1rem !important; /* More space below title */
    line-height: 1.4 !important; /* Better line height */
}

.post-summary {
    margin-bottom: 1.25rem !important; /* More space below summary */
    line-height: 1.7 !important; /* Better readability */
}

/* Section Titles - Better hierarchy */
.section-title {
    margin-bottom: 2.5rem !important; /* Increased from 2rem */
    letter-spacing: -0.02em !important; /* Tighter letter spacing */
}

/* ==========================================================================
   VISUAL HIERARCHY IMPROVEMENTS
   ========================================================================== */

/* Better typography scale */
h1 {
    font-size: 2.75rem !important; /* Slightly larger */
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
}

h2 {
    font-size: 2.25rem !important; /* Better scale */
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
}

h3 {
    font-size: 1.625rem !important; /* Better scale */
    line-height: 1.4 !important;
}

/* Post titles - Better hierarchy */
.post-card .post-title {
    font-size: 1.375rem !important; /* Slightly larger */
    font-weight: 600 !important; /* Not too bold */
    line-height: 1.4 !important;
}

/* ==========================================================================
   COLOR BALANCE IMPROVEMENTS
   ========================================================================== */

/* Better contrast for text */
.post-summary {
    color: var(--color-text-secondary) !important;
    opacity: 0.9 !important; /* Slightly softer */
}

/* Better link colors */
a {
    color: var(--color-link) !important;
    transition: all 0.2s ease !important;
}

a:hover {
    color: var(--color-link-hover) !important;
    text-decoration: underline !important; /* Subtle underline on hover */
}

/* Post card hover - More subtle */
.post-card:hover {
    transform: translateY(-4px) !important; /* Slightly more movement */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05) !important; /* Softer shadows */
}

/* ==========================================================================
   WHITESPACE IMPROVEMENTS
   ========================================================================== */

/* Container padding - More breathing room */
.container {
    padding-left: 2rem !important; /* Increased from 1.5rem */
    padding-right: 2rem !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Main content - More vertical space */
#main-content {
    padding-top: 3rem !important; /* Increased from 2rem */
    padding-bottom: 4rem !important; /* Increased from 3rem */
}

/* Post content - Better spacing */
.post-content {
    line-height: 1.85 !important; /* Increased from 1.8 */
}

.post-content p {
    margin-bottom: 1.5rem !important; /* More space between paragraphs */
}

.post-content h2 {
    margin-top: 3rem !important; /* More space above h2 */
    margin-bottom: 1.5rem !important; /* More space below h2 */
}

.post-content h3 {
    margin-top: 2.5rem !important; /* More space above h3 */
    margin-bottom: 1.25rem !important; /* More space below h3 */
}

/* ==========================================================================
   VISUAL FLOW IMPROVEMENTS
   ========================================================================== */

/* Better button styling */
.btn-primary {
    padding: 0.875rem 2rem !important; /* More padding */
    font-weight: 600 !important; /* Not too bold */
    letter-spacing: 0.01em !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important; /* Subtle lift */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* View all section - Better spacing */
.view-all {
    margin-top: 3rem !important; /* More space above */
    text-align: center !important;
}

/* ==========================================================================
   RESPONSIVE IMPROVEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    /* Mobile - Adjust spacing */
    .hero-section {
        padding: 4rem 1.5rem 3rem !important;
    }
    
    .posts-grid {
        gap: 1.5rem !important;
    }
    
    .post-card-content {
        padding: 1.5rem !important;
    }
    
    h1 {
        font-size: 2.25rem !important;
    }
    
    h2 {
        font-size: 1.875rem !important;
    }
}

/* ==========================================================================
   SUBTLE ANIMATIONS (Bounce's Touch)
   ========================================================================== */

/* Subtle fade-in for post cards */
.post-card {
    animation: bounce-fade-in 0.6s ease-out !important;
}

@keyframes bounce-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for grid items */
.posts-grid .post-card:nth-child(1) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(2) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(3) { animation-delay: 0.3s; }
.posts-grid .post-card:nth-child(4) { animation-delay: 0.4s; }
.posts-grid .post-card:nth-child(5) { animation-delay: 0.5s; }
.posts-grid .post-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Better focus states */
a:focus,
button:focus,
.btn-primary:focus {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

/* Better contrast for status badges */
.status-badge {
    padding: 0.375rem 0.75rem !important; /* More padding */
    border-radius: 16px !important; /* More rounded */
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .post-card,
    .btn-primary {
        animation: none !important;
        transition: none !important;
    }
    
    .post-card:hover {
        transform: none !important;
    }
}
