/* --- Instagram Hashtag Generator Styling --- */
.ihg-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* SEO Intro & Guide Sections */
.ihg-seo-intro, .ihg-seo-guide {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #E1306C; /* Instagram theme color */
    background: #fdf6fa;
}

.ihg-seo-intro h2, .ihg-seo-guide h3 {
    color: #444;
    margin-top: 0;
    font-size: 1.5em;
}

.ihg-seo-guide ol {
    padding-left: 20px;
    font-size: 0.95em;
}
.ihg-seo-guide li {
    margin-bottom: 8px;
}

/* Tool Container */
.ihg-tool-container {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

/* Form Layout (Desktop) */
.ihg-form-grid {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Input Group */
.ihg-input-group {
    flex-grow: 1;
    position: relative;
}

.ihg-input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Space for icon */
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ihg-input-group input:focus {
    border-color: #d62976;
    outline: none;
    box-shadow: 0 0 0 2px rgba(214, 41, 118, 0.2);
}

.ihg-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Buttons (Instagram Gradient Theme) */
.ihg-button {
    padding: 12px 20px;
    background-image: linear-gradient(to right, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s, transform 0.1s;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.ihg-button:hover {
    opacity: 0.9;
}

.ihg-button:active {
    transform: scale(0.98);
}

.ihg-button:disabled {
    background: #ccc !important;
    background-image: none !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Results Area */
.ihg-results-area {
    margin-top: 20px;
    min-height: 70px;
    background: #ffffff;
    padding: 15px;
    border: 1px dashed #962fbf;
    border-radius: 8px;
}

.ihg-initial-message, .ihg-loading-message, .ihg-error-message {
    text-align: center;
    color: #666;
    margin: 0;
    padding: 15px 0;
}

.ihg-loading-message .fa-spin {
    margin-right: 5px;
    color: #d62976;
}

.ihg-error-message {
    color: #D32F2F;
    font-weight: 500;
}

/* Hashtag Display */
.ihg-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ihg-results-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.ihg-keyword-highlight {
    color: #d62976;
    font-weight: 700;
}

.ihg-copy-button {
    padding: 8px 15px;
    font-size: 14px;
}

.ihg-hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ihg-hashtag-item {
    background: #f0f0f0;
    color: #3f729b; /* Instagram blue tone */
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: text;
    transition: background 0.2s;
}

.ihg-hashtag-item:hover {
    background: #e0e0e0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .ihg-form-grid {
        flex-direction: column;
    }
    .ihg-input-group {
        width: 100%;
    }
    .ihg-button {
        width: 100%;
    }
    .ihg-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ihg-copy-button {
        width: 100%;
        margin-top: 10px;
    }
}