/* Updated CSS File: /css/shg-styles.css */

/* Main Container */
.shg-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header Styles */
.shg-header {
    padding: 1.5rem;
    background: #41b883;
    color: white;
    text-align: center;
}

.shg-header h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

/* Input Box - Mobile Responsive */
.shg-input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

#shg-keyword {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#shg-keyword:focus {
    border-color: #ffffff;
    outline: none;
}

#shg-generate {
    width: 100%;
    background: #ffffff;
    color: #41b883;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#shg-generate:hover {
    background: #f0fff8;
}

/* Platform Tabs - Improved Mobile */
.shg-platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 1rem;
    background: #f8f8f8;
}

.shg-tab {
    flex: 1 1 30%;
    padding: 12px 10px;
    border: none;
    background: #e0e0e0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 5px;
    margin: 2px;
}

.shg-tab.active {
    background: #41b883;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Results Container */
.shg-platform-results {
    display: none;
    padding: 1.5rem;
    min-height: 200px;
}

.shg-platform-results.active {
    display: block;
}

.hashtag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.hashtag-item {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hashtag-item:hover {
    background: #41b883;
    color: white;
    transform: translateY(-2px);
}

/* Footer Styles */
.shg-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.shg-copy-all {
    background: #41b883;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .shg-container {
        margin: 1rem;
        border-radius: 10px;
    }
    
    .shg-header h2 {
        font-size: 1.2rem;
    }
    
    .shg-tab {
        flex: 1 1 45%;
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .hashtag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shg-platform-results {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .shg-tab {
        flex: 1 1 100%;
    }
    
    .hashtag-grid {
        grid-template-columns: 1fr;
    }
    
    #shg-keyword {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    #shg-generate {
        font-size: 14px;
        padding: 10px 15px;
    }
}