/* ============================================================
   PROJECTS PAGE — ORGANIZED & CLEAN
   ============================================================ */

/* Shared transitions */
.frame,
.inner-frame,
.repo-item {
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* ============================================================
   OUTER FRAME (Hall of Fame + Repo Frame)
   ============================================================ */
.frame {
    border: 1px solid var(--frame-border);
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 60px auto; /* FIX: spacing between frames */
    color: var(--text-color);
}

/* Header label inside frame */
.projects-header {
    font-weight: bold;
    font-size: 22px;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* ============================================================
   INNER FRAME (content inside each frame)
   ============================================================ */
.inner-frame {
    border: 1px solid var(--frame-border);
    background: transparent;
    border-radius: 10px;
    padding: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-color);
}

/* ============================================================
   HOME CARD (Hall of Fame cards)
   ============================================================ */
/* Base card layout (desktop stays the same) */
.home-card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.4s ease;
}

.home-card:hover {
    background-color: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

/* Image */
.card-image-wrapper {
    width: 300px;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

/* Text */
.card-content {
    padding: 45px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--category-color);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.card-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.75;
    margin: 0;
}

/* -------------------------------------- */
/* 📱 MOBILE BREAKPOINT */
/* -------------------------------------- */

@media (max-width: 768px) {
    .home-card {
        flex-direction: column;      /* stack image + text */
        text-align: center;          /* center text */
    }

    .card-image-wrapper {
        width: 100%;                 /* full width image */
        height: 200px;               /* smaller height */
    }

    .card-content {
        padding: 25px;               /* reduce padding */
        text-align: center;          /* center text */
    }

    .card-content h2 {
        font-size: 22px;             /* scale down */
    }

    .card-content p {
        font-size: 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .card-image-wrapper {
        height: 160px;
    }

    .card-content {
        padding: 20px;
    }
}


/* ============================================================
   REPO LIST ITEMS
   ============================================================ */
.repo-item {
    display: block;
    border: 1px solid var(--repo-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-decoration: none;

    background: transparent;
    color: var(--text-color);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.repo-item:hover {
    transform: translateY(-4px);
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--icon-hover-color);
}

/* Pagination */
/* Pagination Container — Locked to the right */
#pagination {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 14px;
    
    /* Forces the text and buttons to align perfectly to the right */
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

/* Transparent Page Buttons */
.page-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 6px 10px;
    margin-left: 8px; /* Slight spacing boost to keep them separated */
    border-radius: 6px;
    cursor: pointer;
    display: inline-block; /* Ensures the button maintains its geometric box shape */
    
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.page-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   CTA BUTTON IN HERO
   ============================================================ */
.repo-cta {
    display: inline-block;
    margin-top: 25px; /* creates the gap you wanted */
    font-size: 18px;
    color: var(--text-color); /* same color as <p> */
    opacity: 0.85;           /* same subtle tone */
    text-decoration: none;
    font-weight: 400;        /* same weight as <p> */
    padding: 10px 22px;

    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.25s ease,
        opacity 0.3s ease;
}

/* Hover: make it obvious it's a button */
.repo-cta:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
    opacity: 1; /* brighten slightly */
}

/* ============================================================
   Like repos
   ============================================================ */

.repo-heart {
    position: absolute;
    right: 45px; /* Shifted slightly left to make room for the counter next to it */
    top: 50%;
    transform: translateY(-50%); /* Centers it vertically inside the item */
    font-size: 22px;
    color: rgba(240, 240, 240, 0.9); /* Whitish color */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Soft shadow so it stands out on light backgrounds */
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
    z-index: 10; /* Ensures it stays clickable over other elements */
}

/* Hovering directly over the heart makes it pop slightly */
.repo-heart:hover {
    transform: translateY(-50%) scale(1.2);
    color: #ff4d4d; /* Changes to bright red on hover to show interaction */
}

/* When liked (Dark Red state) */
.repo-heart.liked {
    color: #b30000; /* Darker red */
    text-shadow: none;
}

/* Hard pop animation scale when clicked */
.repo-heart.pop-animation {
    transform: translateY(-50%) scale(1.5) !important;
}

/* Like counter placed cleanly next to or below the heart */
.repo-likes {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* Vertically aligned with the heart */
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    opacity: 0.9;
}


/* Forces Hall of Fame cards to inherit the current system theme text color */
#hof-container a.home-card {
    color: inherit;
    text-decoration: none; /* Removes the default hyperlink underline if it's there */
}

/* Optional: If the specific likes row inside the card needs to match your text variables */
.home-card .card-content div {
    color: var(--text-color, inherit); 
}



/* ============================================================
   SMOOTH SCROLL
   ============================================================ */
html {
    scroll-behavior: smooth;
}




