/**
 * Hashtags Styling — Mobile-First
 * Location: /var/www/saafee/public/css/hashtags.css
 */

.hashtags-container {
    margin: 20px 0;
}

/* Mobile default: controls stacked, buttons full-width */
.hashtags-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-select-all,
.btn-select-none,
.btn-copy {
    background: #E44335;
    color: white;
}

.btn-select-all:hover,
.btn-select-none:hover,
.btn-copy:hover {
    background: #C53727;
}

/* Mobile default: single column grid */
.hashtags-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.hashtag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.hashtag-item:hover {
    background: #efefef;
    border-color: #E44335;
}

.hashtag-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    min-width: 20px;
}

.hashtag-text {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.copy-status {
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

.copy-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.copy-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Subcategory Header — mobile default */
.subcategory-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.back-link {
    color: #E44335;
    text-decoration: none;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: #C53727;
}

.subcategory-header h1 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-emoji {
    font-size: 30px;
}

/* Large phones (480px+) */
@media (min-width: 480px) {
    .hashtags-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .hashtags-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn {
        width: auto;
    }
}

/* Tablet+ (768px) */
@media (min-width: 768px) {
    .hashtags-container {
        margin: 40px 0;
    }

    .hashtags-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .subcategory-header {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    .subcategory-header h1 {
        font-size: 28px;
    }

    .header-emoji {
        font-size: 36px;
    }
}
