/* Tools Page Specific Styles */

/* ===== PAGE LAYOUT ===== */
body {
    padding-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== TOOLS NAVIGATION ===== */
.tools-nav {
    background: var(--background-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--primary-color);
}

.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tools-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.tools-tab:hover,
.tools-tab.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== TOOLS SECTIONS ===== */
.tools-content {
    padding: 1rem 0;
}

.tools-section {
    margin-bottom: 3rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== TOOLS SECTION ===== */
.tool-section {
    background: var(--background-light);
    padding: 2rem 0;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.tool-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0rem;
    max-width: 800px;
    margin: 0 auto;
}

.tool-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.tool-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Scale the image proportionally within the size limits */
.tool-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 600px);
    max-height: 400px;
    margin: 0 auto;
    object-fit: contain;
}

.tool-caption {
    padding: 1.5rem;
    text-align: center;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.github-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: black;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.github-follow:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.website-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    color: #222;
    vertical-align: bottom;
}

.website-follow:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.website-follow img {
    height: 24px;       /* Change to 16px for an even smaller logo */
    width: auto;       /* Keep its original proportions */
    display: block;
    flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tools-content {
        padding: 3rem 0;
    }

    .tools-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .cover-details,
    .pdb-info {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .cover-details,
    .pdb-info,
    .tool-caption {
        padding: 1rem;
    }

    .cover-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .github-follow {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATION CLASSES ===== */
.tools-item-enter {
    opacity: 0;
    transform: translateY(20px);
}

.tools-item-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.cover-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.cover-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Hide the white card around the image */
.tool-item,
.tool-item:hover {
    background: transparent;
    box-shadow: none;
}

/* Scale the image proportionally within the size limits */
.tool-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1000px);
    max-height: 600px;
    margin: 0 auto;
    object-fit: contain;
}

/* ===== LOADING STATES ===== */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
