/* Frontend Styles for Amazon DC Tools Display */

.amazon-dc-tools-display {
    margin: 30px 0;
}

.amazon-dc-tools-category {
    margin-bottom: 50px;
}

.amazon-dc-tools-category .category-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff9900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tool-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #ff9900;
}

.tool-image {
    width: 100%;
    height: 250px;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.tool-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
}

.tool-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-brand {
    font-size: 12px;
    color: #c45500;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.3;
    min-height: 2.6em;
}

.tool-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 10px 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.tool-button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #ff9900;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid #ff9900;
    margin-top: auto;
}

.tool-button:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    color: #fff;
    text-decoration: none;
}

.tool-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .amazon-dc-tools-category .category-title {
        font-size: 22px;
    }
    
    .tool-image {
        height: 200px;
    }
    
    .tool-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .amazon-dc-tools-category .category-title {
        font-size: 20px;
    }
}

/* Print styles */
@media print {
    .tool-button {
        display: none;
    }
}
