/* ============================================
   STUDY TOOLS TAB STYLES
   ============================================ */

/* ---------- HEADER ---------- */
.study-tools-header {
    margin-bottom: 24px;
    width: 100%;
}

.study-tools-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.study-tools-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ---------- TOOLS GRID ---------- */
.study-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Individual tool card */
.tool-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
}

/* Thumbnail container */
.tool-card-thumbnail {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.tool-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    display: block;
    transition: transform var(--transition-base);
}

.tool-card:hover .tool-card-thumbnail img {
    transform: scale(1.05);
}

/* Thumbnail overlay */
.tool-card-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Tool icon badge */
.tool-card-icon-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tool-card-icon-badge .material-icons-round {
    font-size: 1.75rem;    color: #ffffff;
}

/* Tool info */
.tool-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 4px 4px 4px;
}

.tool-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tool-card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    height: 0; 
    display: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow indicator */
.tool-card-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.75rem;    color: #ffffff;
    z-index: 1;
    opacity: 0;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tool-card:hover .tool-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ---------- LOADING STATE ---------- */
.tools-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px;
    color: var(--text-secondary);
}

.tools-loading .material-icons-round {
    font-size: 3.5rem;    color: var(--accent-color);
    animation: pulse 1.5s ease infinite;
}

/* ---------- ERROR STATE ---------- */
.tools-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px;
    color: var(--text-secondary);
    text-align: center;
}

.tools-error .material-icons-round {
    font-size: 3.5rem;    color: var(--accent-color);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 710px) {
    .study-tools-title {
        font-size: 1.4rem;
    }
    
    .study-tools-subtitle {
        font-size: 0.95rem;
    }
    
    .study-tools-grid {
        gap: 16px;
    }
    
    .tool-card {
        max-width: 100%;
        margin-bottom: 2rem;
        
    }
}

/* Tablet */
@media (min-width: 711px) and (max-width: 1024px) {
    .study-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}