/* Meta Tag Generator - Professional Styles */
.meta-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.meta-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.meta-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.meta-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
}

.meta-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.meta-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Tabs */
.meta-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-tab {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 30px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.meta-tab.active {
    background: var(--primary);
    color: white;
}

.meta-tab:hover:not(.active) {
    background: var(--bg);
    color: var(--primary);
}

/* Tab Content */
.meta-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.meta-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.meta-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.required {
    color: #ef4444;
}

.meta-input, .meta-textarea, .meta-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.meta-textarea {
    resize: vertical;
    font-family: 'Fira Code', monospace;
}

.meta-input:focus, .meta-textarea:focus, .meta-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.char-counter {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    text-align: right;
}

.char-counter.warning {
    color: #eab308;
}

.char-counter.danger {
    color: #ef4444;
}

.field-hint {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.3rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Preview Container */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.preview-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Google Search Preview */
.google-preview {
    background: var(--surface);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.google-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a0dab;
    text-decoration: none;
    margin-bottom: 0.2rem;
    cursor: pointer;
}

.dark-mode .google-title {
    color: #8ab4f8;
}

.google-url {
    font-size: 0.8rem;
    color: #202124;
    margin-bottom: 0.2rem;
}

.dark-mode .google-url {
    color: #9aa0a6;
}

.google-description {
    font-size: 0.85rem;
    color: #4d5156;
    line-height: 1.4;
}

.dark-mode .google-description {
    color: #bdc1c6;
}

/* Social Media Preview */
.social-preview {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.social-image {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.image-placeholder {
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.social-content {
    padding: 1rem;
}

.social-site {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.social-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Twitter Preview */
.twitter-preview {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 500px;
}

.twitter-image {
    background: linear-gradient(135deg, #1da1f2, #0d8bec);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.twitter-content {
    padding: 0.8rem;
}

.twitter-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.twitter-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.twitter-meta {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Action Buttons */
.meta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.primary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Output Area */
.meta-output {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.output-label {
    font-weight: 600;
    color: var(--text);
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.mini-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.mini-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.meta-output-pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text);
}

/* Tips Section */
.meta-tips {
    margin-bottom: 1.5rem;
}

.meta-tips h3 {
    margin-bottom: 1rem;
}

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

.tip-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.tip-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tip-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.tip-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* SEO Content */
.meta-seo {
    margin-top: 1rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 20px;
}

.feature-list {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
}

.feature-list li {
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Download Card */
.download-card-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

.download-card-bg-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-card-corner-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, transparent 100%);
    border-radius: 0 100px 0 0;
}

.download-card-header, .download-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.download-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.download-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-card-body {
    position: relative;
    z-index: 1;
}

.download-calculator-type {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.download-calculation {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.3rem 0;
    color: var(--text);
    word-break: break-word;
}

.download-result-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.download-result-value {
    color: white;
    font-weight: bold;
    word-break: break-word;
}

.download-explanation {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    margin: 0.6rem 0;
}

.download-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.download-input-item {
    background: var(--bg);
    padding: 0.4rem;
    border-radius: 8px;
    text-align: center;
}

.download-input-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-light);
}

.download-input-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.download-brand {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .meta-container {
        padding: 0 1rem;
    }
    
    .meta-title {
        font-size: 2rem;
    }
    
    .meta-card {
        padding: 1.2rem;
    }
    
    .meta-tab {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .social-preview, .twitter-preview {
        max-width: 100%;
    }
}

/* Dark Mode Specific */
.dark-mode .google-preview,
.dark-mode .social-preview,
.dark-mode .twitter-preview {
    background: var(--surface);
}

.dark-mode .social-image {
    background: linear-gradient(135deg, #4c51bf, #6b46c1);
}