/*
=====================================================
  FINAL STYLES FOR THE UPGRADED TOOLS PAGE
=====================================================
*/

.tools-page-main { padding: 2rem 0 5rem; }
.hidden { display: none !important; }

/* HERO & FILTERS */
.tools-hero { text-align: center; padding: 3rem 0; position: relative; overflow: hidden; }
.hero-aurora { position: absolute; top: 50%; left: 50%; width: 800px; height: 600px; background: radial-gradient(circle, rgba(255, 121, 63, 0.15) 0%, rgba(255, 121, 63, 0) 60%); transform: translate(-50%, -50%); z-index: -1; }
.hero-logo { width: 64px; height: 64px; margin: 0 auto 1.5rem; background: #0D0D0D; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1); }
.hero-logo img { width: 32px; height: 32px; }
.hero-title { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; margin-bottom: 2rem; }
.hero-title span { color: #FF793F; }

/* SEARCH & LIVE RESULTS */
.search-container { position: relative; max-width: 500px; margin: 0 auto; }
#tool-search { width: 100%; padding: 0.85rem 1rem 0.85rem 3rem; background-color: #1a1a1a; border: 1px solid #333; border-radius: var(--border-radius-lg); color: var(--text-primary); font-size: 1rem; transition: all 0.2s ease; }
#tool-search:focus { outline: none; border-color: var(--primary-color); background-color: #111; box-shadow: 0 0 0 4px var(--primary-focus); border-bottom-left-radius: 0; border-bottom-right-radius: 0;}
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-secondary); }

.search-results { position: absolute; top: 100%; left: 0; right: 0; background-color: #1a1a1a; border: 1px solid var(--primary-color); border-top: none; border-bottom-left-radius: var(--border-radius-lg); border-bottom-right-radius: var(--border-radius-lg); max-height: 300px; overflow-y: auto; z-index: 100; display: none; }
.search-results.visible { display: block; }
.search-result-item { display: flex; align-items: center; padding: 0.75rem 1rem; text-decoration: none; color: var(--text-secondary); transition: background-color 0.2s; }
.search-result-item:hover { background-color: #222; color: var(--text-primary); }
.search-result-item img { width: 20px; height: 20px; margin-right: 1rem; filter: brightness(0) invert(1); }
.search-result-item span { font-weight: 500; }

/* FILTERS */
.filter-tabs { display: flex; justify-content: center; gap: 0.5rem; margin: 2rem auto 3rem; }
.filter-btn { padding: 0.5rem 1rem; background: transparent; border: 1px solid transparent; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; border-radius: var(--border-radius-md); cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover { color: var(--text-primary); background-color: #222; }
.filter-btn.active { color: var(--text-primary); background-color: #2a2a2a; border-color: #444; }

/* TOOL CARDS (Same styling for both views) */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.tool-card { background-color: #121212; border: 1px solid #222; border-radius: var(--border-radius-lg); padding: 1.5rem; display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
.tool-card:hover { transform: translateY(-8px); border-color: var(--primary-color); }
.tool-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; background-color: #4338ca26; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tool-icon img { width: 24px; height: 24px; }
.tool-info { flex-grow: 1; }
.tool-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.tool-desc { color: var(--text-secondary); line-height: 1.6; font-size: 0.9rem; }
.tool-footer { margin-top: 1.5rem; }
.tool-link { font-weight: 600; color: #FF793F; font-size: 0.9rem; }

/* CATEGORIES VIEW */
.category-section { margin-bottom: 4rem; }
.category-header { display: flex; align-items: center; gap: 1.5rem; padding: 1rem; border-bottom: 1px solid #222; margin-bottom: 2rem; }
.category-header .tool-icon { margin: 0; } /* Remove margin from icon in header */
.category-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.category-desc { font-size: 1rem; color: var(--text-secondary); margin: 0; }




/*
=====================================================
  LOAD MORE & HIDDEN CARD STYLES
=====================================================
*/
.load-more-card {
    cursor: pointer;
    background-color: #181818; /* Slightly different background */
}

.load-more-card .tool-info {
    text-align: center;
    margin: auto; /* Vertically center the text */
}

.load-more-card .tool-title {
    color: var(--text-primary);
}

.load-more-card .tool-desc {
    font-size: 0.85rem;
}

/* This class will hide tools until the "Load More" button is clicked */
.tool-card.hidden {
    display: none;
}

/*
=====================================================
  TOOL PAGE HERO BANNER
=====================================================
*/
.tool-hero-banner {
    max-width: 800px; /* Constrains the width */
    margin: 2.5rem auto 0; /* Adds space above and centers it */
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3); /* The "box effect" shadow */
    overflow: hidden; /* Ensures the image respects the rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}

.tool-hero-banner:hover {
    transform: translateY(-5px) scale(1.02); /* Lifts and zooms slightly on hover */
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.4);
}

.tool-hero-banner img {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
}


