/* Schema Markup Generator Styles */

.schema-generator-layout {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
}

/* Hero Card Styles */
.schema-hero-card {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.schema-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(74, 222, 128, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-md);
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 0 var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.schema-selector-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.hero-schema-select {
    width: 100%;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 16px;
    color: var(--text-primary-color);
    font-size: var(--font-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.hero-schema-select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-schema-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #4ade80;
}

.hero-schema-select option {
    background: var(--background-color);
    color: var(--text-primary-color);
    padding: 12px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-2xl);
    gap: var(--space-md);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--text-primary-color);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4ade80;
    border-color: #4ade80;
    color: white;
}

.step-label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary-color);
    text-align: center;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* Tool Content Grid */
.tool-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.tool-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.panel-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm);
    color: var(--text-primary-color);
}

.panel-header p {
    font-size: var(--font-sm);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.panel-content {
    padding: var(--space-lg);
}

/* Implementation Guide */
.implementation-guide h4 {
    margin-bottom: var(--space-md);
    color: #4ade80;
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.guide-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: rgba(74, 222, 128, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4ade80;
}

.step-number {
    background: #4ade80;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    font-weight: 600;
    flex-shrink: 0;
}

.guide-step span:last-child {
    color: var(--text-primary-color);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.schema-type-container {
    padding: var(--space-lg);
}

.schema-type-container label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
}

.schema-select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary-color);
    font-size: var(--font-base);
    transition: all 0.3s ease;
}

.schema-select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.schema-select option {
    background: var(--background-color);
    color: var(--text-primary-color);
}

.schema-form-container {
    padding: var(--space-lg);
}

.schema-form-group {
    margin-bottom: var(--space-lg);
}

.schema-form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
}

.schema-form-group input,
.schema-form-group textarea,
.schema-form-group select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary-color);
    font-size: var(--font-base);
    transition: all 0.3s ease;
    font-family: inherit;
}

.schema-form-group input:focus,
.schema-form-group textarea:focus,
.schema-form-group select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.schema-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.schema-form-group select option {
    background: var(--background-color);
    color: var(--text-primary-color);
}

.form-actions {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.schema-output-container {
    padding: var(--space-lg);
}

.output-controls {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.schema-output {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
}

.schema-output pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-sm);
    line-height: 1.5;
    color: #e5e7eb;
}

.implementation-guide {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.implementation-guide h4 {
    margin-bottom: var(--space-md);
    color: #4ade80;
    font-weight: var(--font-semibold);
}

.implementation-guide ol {
    margin: 0;
    padding-left: var(--space-xl);
}

.implementation-guide li {
    margin-bottom: var(--space-sm);
    color: var(--text-primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .schema-generator-layout {
        gap: var(--space-lg);
    }
    
    .schema-type-container,
    .schema-form-container,
    .schema-output-container {
        padding: var(--space-md);
    }
    
    .form-actions,
    .output-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .schema-output pre {
        font-size: var(--font-xs);
    }
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-weight: var(--font-medium);
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Field Groups */
.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .field-group {
        grid-template-columns: 1fr;
    }
}

.required::after {
    content: ' *';
    color: #ef4444;
}

/* Nested Object Styling */
.nested-object {
    border-left: 3px solid #4ade80;
    padding-left: var(--space-md);
    margin-left: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.nested-object h5 {
    margin-bottom: var(--space-md);
    color: #4ade80;
    font-weight: var(--font-semibold);
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #ffffff;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #4ade80;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
}
