/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
    padding: 0 0.75rem;
}

.site-header {
    text-align: center;
    margin: 2.5rem 0 1.75rem;
}

.tagline {
    margin-top: 0.5rem;
    color: #bbbbbb;
}

main {
    max-width: 1200px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tool-section {
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    background: #0f0f0f;
    overflow: hidden;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    color: #9e9e9e;
}

.section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.section-toggle:focus-visible {
    outline: 2px solid #5bd0ff;
    outline-offset: -4px;
}

.chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #cfcfcf;
    transition: transform 0.2s ease;
}

.section-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.tools-panel {
    padding: 0 1rem 1.25rem;
    border-top: 1px solid #1f1f1f;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.install-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.install-button {
    border: 1px dashed rgba(141, 216, 255, 0.45);
    color: #8dd8ff;
    background: rgba(141, 216, 255, 0.06);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: border 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.install-button:hover:not(:disabled) {
    border-color: rgba(141, 216, 255, 0.8);
    background: rgba(141, 216, 255, 0.12);
    transform: translateY(-1px);
}

.install-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.tool-card {
    background-color: #1b1b1b;
    padding: 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #252525;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #343434;
    filter: brightness(1.04);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 1.4rem;
}

.tool-name {
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tool-card.music {
    background: linear-gradient(135deg, #3c1a5b, #1b0b33 55%, #0f071f);
    border-color: #c47bff;
    box-shadow: 0 10px 40px rgba(196, 123, 255, 0.25);
}
.tool-card.dev {
    background: linear-gradient(140deg, #12324a, #0b2033 55%, #08131f);
    border-color: #5bd0ff;
    box-shadow: 0 10px 40px rgba(91, 208, 255, 0.2);
}
.tool-card.image {
    background: linear-gradient(140deg, #402349, #1f0f2a 55%, #14091c);
    border-color: #ff7bba;
    box-shadow: 0 10px 40px rgba(255, 123, 186, 0.22);
}
.tool-card.file {
    background: linear-gradient(140deg, #1f4a35, #0f2b1f 55%, #081a13);
    border-color: #6ef2b2;
    box-shadow: 0 10px 40px rgba(110, 242, 178, 0.22);
}
.tool-card.utility {
    background: linear-gradient(140deg, #4a2d1c, #2b180e 55%, #1c0f0a);
    border-color: #ffb56f;
    box-shadow: 0 10px 40px rgba(255, 181, 111, 0.22);
}

.site-footer {
    text-align: center;
    margin: 3rem 0 1rem;
    color: #777777;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
        gap: 0.6rem;
    }

    .tool-card {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .tool-name {
        font-size: 0.95rem;
    }
}
