/* Custom CSS for PaperModX */

/* =========================================
   HIDE RSS LINKS
   ========================================= */

/* Hide all RSS links */
a[href$="index.xml"],
a[href$="/index.xml"],
a[href*="rss"],
a[title="RSS"],
.rss-link {
    display: none !important;
}

/* =========================================
   HOMEPAGE STYLES
   ========================================= */

/* Only the homepage gets the hero image */
body.kind-home {
    background-image: url('/images/hero.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Glassmorphism for the Profile Card on Homepage */
body.kind-home .profile {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background-color: rgba(30, 30, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 5vh;
    /* Center it vertically a bit more */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Text readability on Homepage */
body.kind-home .profile h1,
body.kind-home .profile .subtitle,
body.kind-home #menu a,
body.kind-home .entry-header h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Hide the # anchor links globally (as requested earlier) */
.anchor {
    display: none !important;
}

/* =========================================
   CONTENT PAGE STYLES (Standard)
   ========================================= */

/* Ensure other pages utilize the theme's default background */
body:not(.kind-home) {
    background-image: none !important;
    /* We don't force background-color, letting the theme decide (light/dark mode) */
}

/* =========================================
   HOMEPAGE POST CARDS
   ========================================= */

/* Compact Recent Posts header */
body.kind-home .home-info {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(20, 20, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.kind-home .home-info h1 {
    font-size: 1.75rem;
    margin: 0;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Grid layout for post cards */
body.kind-home .main .list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

/* Better text readability on homepage */
body.kind-home h2,
body.kind-home h3,
body.kind-home p,
body.kind-home a {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Hide messy summary text on homepage */
body.kind-home .entry-content {
    display: none !important;
}

/* Show dates on cards */
body.kind-home .entry-footer {
    display: block !important;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.kind-home .entry-footer .post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem;
}

/* Sleeker card styling */
body.kind-home .post-entry {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay on hover */
body.kind-home .post-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.kind-home .post-entry:hover::before {
    opacity: 1;
}

body.kind-home .post-entry:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Card title styling */
body.kind-home .post-entry .entry-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    color: #ffffff !important;
}

/* =========================================
   ABOUT ME PAGE STYLES
   ========================================= */

/* Hero background for About Me page - applied to entire page */
body:has(.about-page-content) {
    background-image: url('/images/hero.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Glassmorphism for content on About Me page */
.about-page-content .post-content {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Text readability on About Me page */
.about-page-content .post-content h2,
.about-page-content .post-content h3,
.about-page-content .post-content p,
.about-page-content .post-content strong,
.about-page-content .post-content a,
.about-page-content .post-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Link styling for About Me page */
.about-page-content .post-content a {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.about-page-content .post-content a:hover {
    opacity: 0.8;
}