/* ===================================
   SEO Meta Tag Generator - Styles
   =================================== */

/* Guide Section */
.guide-section {
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.guide-tips {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-lg);
    list-style-type: disc;
}

.guide-tips li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Preview List */
.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-list li {
    list-style: none;
}

/* Hero Section */
.seo-hero {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

/* SEO Section */
.seo-section {
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Form Card */
.seo-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
}

.seo-form-card .card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.seo-form-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: white;
}

.seo-form-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.seo-form-card .card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Form Styles */
.seo-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    width: 100%;
    line-height: 1.5;
}

.form-label .required {
    color: var(--color-error);
    font-weight: 700;
    margin-left: var(--spacing-xs);
}

.label-hint {
    position: relative;
    display: inline-flex;
    cursor: help;
    margin-left: auto;
    flex-shrink: 0;
}

.label-hint i {
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.label-hint:hover i {
    color: var(--color-primary-light);
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 10;
    white-space: normal;
    text-align: center;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-border);
}

.label-hint:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-secondary) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text) !important;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted) !important;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--color-border-light) !important;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--color-bg-secondary) !important;
}

.seo-form textarea.form-textarea,
.seo-form-card textarea.form-textarea,
textarea.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
    background: #12121a !important;
    border: 1px solid #2a2a3a !important;
    color: #ffffff !important;
}

.seo-form textarea.form-textarea:hover,
.seo-form-card textarea.form-textarea:hover,
textarea.form-textarea:hover {
    background: #12121a !important;
    border-color: #3a3a4a !important;
}

.seo-form textarea.form-textarea:focus,
.seo-form-card textarea.form-textarea:focus,
textarea.form-textarea:focus {
    background: #12121a !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.seo-form textarea.form-textarea::placeholder,
.seo-form-card textarea.form-textarea::placeholder,
textarea.form-textarea::placeholder {
    color: #6a6a7a !important;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.input-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.input-counter span {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Result Card */
.seo-result-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    position: sticky;
    top: 100px;
}

.seo-result-card .card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.seo-result-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: white;
}

.seo-result-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.seo-result-card .card-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Tabs */
.result-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-xs);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Code Block */
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.code-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.code-block {
    padding: var(--spacing-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.code-block code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Preview */
.preview-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.preview-item {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.preview-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Preview */
.search-preview {
    padding: var(--spacing-md);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
}

.search-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a0dab;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
}

.search-title:hover {
    text-decoration: underline;
}

.search-url {
    font-size: 0.875rem;
    color: #006621;
    margin-bottom: var(--spacing-xs);
}

.search-desc {
    font-size: 0.875rem;
    color: #545454;
    line-height: 1.5;
}

/* Social Preview */
.social-preview {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

.social-preview.facebook {
    max-width: 500px;
}

.social-preview.twitter {
    max-width: 500px;
}

.social-image {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: #999;
    border-bottom: 1px solid #e0e0e0;
}

.social-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-image i {
    font-size: 2rem;
}

.social-image span {
    font-size: 0.875rem;
}

.social-content {
    padding: var(--spacing-md);
}

.social-url {
    font-size: 0.75rem;
    color: #606770;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.5px;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d2129;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.social-desc {
    font-size: 0.875rem;
    color: #606770;
    line-height: 1.4;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-result-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .seo-form-card .card-header,
    .seo-result-card .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

