/* AI Prompt Generator - Main Styles */
.aipg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.aipg-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.aipg-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.aipg-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.aipg-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin: 0;
}

.aipg-tool-wrapper {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.aipg-section {
    margin-bottom: 30px;
}

.aipg-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.aipg-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.aipg-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.aipg-input::placeholder {
    color: #94a3b8;
}

/* Radio Buttons */
.aipg-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aipg-radio {
    flex: 1;
    min-width: 180px;
}

.aipg-radio input[type="radio"] {
    display: none;
}

.radio-label {
    display: block;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.aipg-radio input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
    border-color: #60a5fa;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.radio-label:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
}

/* Content Type Grid */
.aipg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.aipg-type-btn {
    padding: 18px 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.aipg-type-btn:hover {
    border-color: #60a5fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.2);
}

.aipg-type-btn.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
    border-color: #60a5fa;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

/* Select Box */
.aipg-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2360a5fa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.aipg-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Generate Button */
.aipg-generate-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.aipg-generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.aipg-generate-btn:active {
    transform: translateY(-1px);
}

/* Result Section */
.aipg-result-section {
    margin-top: 30px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aipg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aipg-result-header h3 {
    margin: 0;
    color: #60a5fa;
    font-size: 1.5rem;
}

.aipg-copy-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aipg-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.aipg-result-box {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.aipg-result-text {
    width: 100%;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.aipg-actions {
    display: flex;
    gap: 15px;
}

.aipg-secondary-btn {
    flex: 1;
    padding: 15px;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aipg-secondary-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
}

/* Stats */
.aipg-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aipg-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Pro CTA */
.aipg-pro-cta {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 179, 8, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.aipg-pro-cta h3 {
    color: #f59e0b;
    margin-top: 0;
    margin-bottom: 15px;
}

.aipg-pro-cta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.aipg-pro-cta li {
    padding: 8px 0;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aipg-pro-cta li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.aipg-pro-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    border-radius: 12px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aipg-pro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* Admin Styles */
.aipg-admin-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aipg-container {
        padding: 20px;
        margin: 10px;
    }
    
    .aipg-header h1 {
        font-size: 2rem;
    }
    
    .aipg-tool-wrapper {
        padding: 20px;
    }
    
    .aipg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aipg-radio-group {
        flex-direction: column;
    }
    
    .aipg-actions {
        flex-direction: column;
    }
    
    .aipg-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Animation for copy success */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}