/* ============================================================
   Team Tool Access — Frontend Styles
   ============================================================ */

/* Directory grid */
.tta-directory {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}
.tta-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tta-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tta-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .tta-cols-3, .tta-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tta-cols-2, .tta-cols-3, .tta-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.tta-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tta-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.tta-card-logo-link {
    display: block;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
    padding: 24px;
    text-align: center;
}
.tta-card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
}
.tta-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tta-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.tta-tool-name {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.tta-tool-name a {
    color: inherit;
    text-decoration: none;
}
.tta-tool-name a:hover { text-decoration: underline; }
.tta-tool-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}

/* Access button */
.tta-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff !important;
    border: none;
    border-radius: 7px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: opacity .15s, transform .1s;
    letter-spacing: .2px;
}
.tta-access-btn:hover    { opacity: .88; transform: translateY(-1px); }
.tta-access-btn:active   { transform: translateY(0); }
.tta-access-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.tta-login-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.tta-login-btn:hover { background: #e5e7eb; }

/* Empty state */
.tta-empty {
    text-align: center;
    color: #9ca3af;
    padding: 48px 0;
    font-size: 16px;
}

/* Toast notification */
.tta-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1f2937;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
    animation: tta-slide-in .25s ease;
    transition: opacity .3s;
}
.tta-toast.tta-toast-success { border-left: 4px solid #22c55e; }
.tta-toast.tta-toast-error   { border-left: 4px solid #ef4444; }
.tta-toast.tta-toast-info    { border-left: 4px solid #3b82f6; }

@keyframes tta-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Extension required modal */
.tta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tta-fade-in .2s;
}
@keyframes tta-fade-in { from{opacity:0} to{opacity:1} }

.tta-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    position: relative;
    text-align: center;
}
.tta-modal h2 { margin: 0 0 10px; font-size: 22px; }
.tta-modal p  { color: #555; line-height: 1.6; margin: 0 0 24px; }
.tta-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.tta-modal-close:hover { color: #333; }
.tta-modal-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    margin: 0 6px 8px;
    transition: opacity .15s;
}
.tta-modal-btn:hover { opacity: .88; color: #fff; }
.tta-modal-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}
.tta-modal-steps {
    text-align: left;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}
.tta-modal-steps ol { margin: 0; padding-left: 18px; }
