/* ChannelForge Pro WordPress Plugin Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: rgba(0, 0, 0, 0.1);
    --section-padding: 60px 0;
}

.channelforge-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}

.channelforge-hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.channelforge-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.channelforge-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.channelforge-free-highlight {
    display: inline-block;
    background: var(--success-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    font-size: 0.9rem;
}

.channelforge-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.channelforge-section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.channelforge-main-generator {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.channelforge-generator-header {
    text-align: center;
    margin-bottom: 30px;
}

.channelforge-generator-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.channelforge-generator-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.channelforge-input-group {
    margin-bottom: 24px;
}

.channelforge-input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.channelforge-niche-dropdown {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-primary);
    font-size: 15px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.channelforge-niche-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.channelforge-generate-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.channelforge-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.channelforge-sync-indicator {
    background: var(--success-gradient);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 16px 0;
    display: none;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    animation: slideInDown 0.5s ease;
}

.channelforge-sync-indicator.show {
    display: block;
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.channelforge-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.channelforge-result-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.channelforge-result-panel h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channelforge-result-panel h4 i {
    color: #667eea;
}

.channelforge-results-area {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    min-height: 280px;
    border: 1px solid var(--border-color);
}

.channelforge-result-item {
    background: white;
    padding: 14px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.channelforge-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.channelforge-result-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: #667eea;
}

.channelforge-result-buttons {
    display: flex;
    gap: 6px;
}

.channelforge-copy-btn, .channelforge-select-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.channelforge-select-btn {
    background: var(--accent-gradient);
}

.channelforge-copy-btn {
    background: var(--success-gradient);
}

.channelforge-select-btn:hover, .channelforge-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.channelforge-tools-section {
    padding: 40px 0;
    background: #f8fafc;
    border-radius: 16px;
    margin: 30px 0;
}

.channelforge-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.channelforge-tool-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.channelforge-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.channelforge-tool-card:hover::before {
    transform: scaleX(1);
}

.channelforge-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.channelforge-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.channelforge-tool-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.channelforge-tool-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.channelforge-tool-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    border: none;
    cursor: pointer;
}

.channelforge-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
    text-decoration: none;
    color: white;
}

.channelforge-niches-section {
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    margin: 30px 0;
}

.channelforge-niches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.channelforge-niche-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.channelforge-niche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.channelforge-niche-card:hover::before {
    transform: scaleX(1);
}

.channelforge-niche-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.channelforge-niche-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.channelforge-niche-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.channelforge-niche-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.channelforge-use-case {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
    border-left: 3px solid #667eea;
}

/* Modal Styles */
.channelforge-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.channelforge-modal-content {
    background: white;
    margin: 3% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}

.channelforge-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.channelforge-close:hover {
    color: var(--text-primary);
}

.channelforge-modal h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.channelforge-modal input, .channelforge-modal select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.channelforge-modal input:focus, .channelforge-modal select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.channelforge-modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.channelforge-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.channelforge-modal-result {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    display: none;
}

/* Loading Animation */
.channelforge-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.channelforge-text-center { text-align: center; }
.channelforge-mb-20 { margin-bottom: 20px; }
.channelforge-mb-30 { margin-bottom: 30px; }
.channelforge-hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    .channelforge-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .channelforge-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .channelforge-niches-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .channelforge-hero h1 {
        font-size: 2rem;
    }
    
    .channelforge-section-title {
        font-size: 1.5rem;
    }
    
    .channelforge-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

/* WordPress Admin Integration */
.wp-admin .channelforge-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-admin .channelforge-generate-btn {
    background: #0073aa;
}

.wp-admin .channelforge-generate-btn:hover {
    background: #005a87;
}