/* Tools Section Styles - Mobile First */
/* Channel List and TeleSearcher links */

.tools-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 !important;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tools-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.tools-title {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.tools-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px 0;
    line-height: 1.6;
    font-weight: 400;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tool-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.tool-card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tool-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-height: 48px;
    border: none;
    cursor: pointer !important;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.tool-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.tool-button-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Progressive Enhancement - Tablets */
@media screen and (min-width: 481px) {
    .tools-section {
        padding: 70px 30px;
    }
    
    .tools-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .tools-subtitle {
        font-size: 1.1rem;
        margin-bottom: 45px;
    }
    
    .tools-grid {
        gap: 25px;
    }
    
    .tool-card {
        padding: 35px 25px;
    }
    
    .tool-card-title {
        font-size: 1.6rem;
    }
    
    .tool-card-description {
        font-size: 1rem;
    }
    
    .tool-button {
        padding: 16px 32px;
        font-size: 1.05rem;
        max-width: 300px;
    }
}

/* Progressive Enhancement - Desktop */
@media screen and (min-width: 769px) {
    .tools-section {
        padding: 90px 40px;
    }
    
    .tools-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .tools-title {
        font-size: 3rem;
        margin-bottom: 25px;
    }
    
    .tools-subtitle {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 900px;
    }
    
    .tool-card {
        padding: 40px 30px;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .tool-card-title {
        font-size: 1.75rem;
    }
    
    .tool-card-description {
        font-size: 1.05rem;
    }
    
    .tool-button {
        padding: 16px 36px;
        font-size: 1.1rem;
        max-width: 320px;
    }
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
    .tools-title {
        font-size: 3.5rem;
    }
    
    .tools-subtitle {
        font-size: 1.3rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .tool-card:hover {
        transform: none;
    }
    
    .tool-card:active {
        transform: scale(0.98);
    }
    
    .tool-button:hover {
        transform: none;
    }
    
    .tool-button:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
}
