/* Headcanon Generator WordPress Plugin Styles - Version 2.0 */

.headcanon-generator-app-container {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.headcanon-generator-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation Tabs */
.headcanon-generator-nav-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.headcanon-generator-nav-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    color: #666;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.headcanon-generator-nav-tab.active {
    background: #000;
    color: white;
}

.headcanon-generator-nav-tab:hover:not(.active) {
    background: #e8e8e8;
    color: #000;
}

/* Tone Section */
.headcanon-generator-tone-section {
    margin-bottom: 2rem;
}

.headcanon-generator-section-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Form Section */
.headcanon-generator-form-section {
    margin-bottom: 2rem;
}

.headcanon-generator-form-group {
    margin-bottom: 1.5rem;
}

.headcanon-generator-form-input,
.headcanon-generator-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: border-color 0.2s;
}

.headcanon-generator-form-input:focus,
.headcanon-generator-form-textarea:focus {
    outline: none;
    border-color: #000;
}

.headcanon-generator-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Dropdown */
.headcanon-generator-dropdown-container {
    position: relative;
}

.headcanon-generator-dropdown-trigger {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.headcanon-generator-dropdown-trigger:hover {
    border-color: #000;
}

.headcanon-generator-dropdown-icon {
    color: #666;
    transition: transform 0.2s;
}

.headcanon-generator-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.headcanon-generator-dropdown-item {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: white;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.headcanon-generator-dropdown-item:hover {
    background: #f8f8f8;
}

.headcanon-generator-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.headcanon-generator-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Tone Dropdown Specific Styles */
.headcanon-generator-tone-dropdown {
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.headcanon-generator-search-container {
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.headcanon-generator-search-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    color: #333;
}

.headcanon-generator-search-input:focus {
    outline: none;
    border-color: #000;
}

.headcanon-generator-dropdown-actions {
    border-bottom: 1px solid #e0e0e0;
}

.headcanon-generator-clear-item {
    color: #666;
    font-style: italic;
}

.headcanon-generator-clear-item:hover {
    background: #f8f8f8;
    color: #000;
}

.headcanon-generator-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.headcanon-generator-dropdown-item.selected {
    background: #000;
    color: white;
}

.headcanon-generator-no-results {
    padding: 0.75rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Generate Button */
.headcanon-generator-generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #000 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.headcanon-generator-generate-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #333 0%, #000 100%);
    transform: translateY(-1px);
}

.headcanon-generator-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.headcanon-generator-spinning {
    animation: headcanon-generator-spin 1s linear infinite;
}

@keyframes headcanon-generator-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Result Section */
.headcanon-generator-result-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.headcanon-generator-result-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    min-height: 100px;
}

.headcanon-generator-result-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.headcanon-generator-action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
    width: 36px;
    height: 36px;
}

.headcanon-generator-action-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

/* Toast Notification */
.headcanon-generator-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: headcanon-generator-slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.headcanon-generator-toast.toast-success {
    background: #000;
    border: 1px solid #333;
}

.headcanon-generator-toast.toast-error {
    background: #333;
    border: 1px solid #000;
}

@keyframes headcanon-generator-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .headcanon-generator-app-container {
        padding: 1rem;
    }

    .headcanon-generator-card {
        padding: 1.5rem;
    }

    .headcanon-generator-nav-tab {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .headcanon-generator-result-actions {
        justify-content: center;
    }
}

/* Admin Styles */
.headcanon-generator-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-widget {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 1.5rem;
}

.admin-widget.full-width {
    grid-column: 1 / -1;
}

.admin-widget h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.version-badge {
    background: #000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: normal;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1a1a1a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.recent-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activity li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.recent-activity li:last-child {
    border-bottom: none;
}

.usage-instructions {
    line-height: 1.6;
}

.usage-instructions h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.usage-instructions ul,
.usage-instructions ol {
    margin-left: 1.5rem;
}

.usage-instructions code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.settings-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.api-instructions {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.api-benefits {
    margin-top: 1rem;
}

.status-active {
    color: #10b981;
    font-weight: bold;
}

.status-error {
    color: #ef4444;
    font-weight: bold;
}

.status-disabled {
    color: #666;
    font-weight: bold;
}

@media (max-width: 768px) {
    .headcanon-generator-admin {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}