/* Meta Tags Generator Styles - Matching Site Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --text-primary-color: #ffffff;
    --text-secondary-color: rgba(255, 255, 255, 0.8);
    --background-color: #000000;
    --primary-color: #4ade80;
    --accent-color: #22c55e;
    
    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    --primary-color: #4ade80;
    --primary-hover: #22c55e;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-overlay: rgba(0, 0, 0, 0.1);
    
    --border-color: rgba(226, 232, 240, 0.8);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/desktop Bg image.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.back-button i {
    font-size: 16px;
}

/* Header */
.header {
    text-align: center;
    padding: 80px 0 60px;
}

.breadcrumb {
    font-size: var(--font-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 var(--space-xs);
}

.title {
    font-size: var(--font-3xl);
    font-weight: var(--font-extrabold);
    color: white;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Content */
.main-content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: 0 0 var(--space-2xl);
}

/* Cards */
.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: var(--space-xl);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--space-lg);
}

.card-title i {
    color: var(--primary-color);
    font-size: var(--font-2xl);
}

.card-content {
    display: grid;
    gap: var(--space-lg);
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-weight: var(--font-semibold);
    color: white;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.7);
}

.char-count {
    font-weight: var(--font-semibold);
    color: var(--primary-color);
}

.help-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Card Specific Colors */
.meta-card .card-title i {
    color: #3b82f6;
}

.og-card .card-title i {
    color: #1877f2;
}

.twitter-card .card-title i {
    color: #1da1f2;
}

.additional-card .card-title i {
    color: #8b5cf6;
}

.preview-card .card-title i {
    color: #10b981;
}

.output-card .card-title i {
    color: #f59e0b;
}

/* SERP Preview */
.serp-preview {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-lg);
    color: var(--text-primary);
    font-family: arial, sans-serif;
    max-width: 600px;
}

.serp-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 2px;
}

.serp-title {
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
    text-decoration: underline;
    margin-bottom: 4px;
    cursor: pointer;
}

.serp-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.4;
}

/* Output Section */
.output-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

.meta-output {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-lg);
    font-family: 'Courier New', monospace;
    color: var(--bg-primary);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.output-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: var(--spacing-xl);
}

.output-placeholder i {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* 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;
    display: grid;
    gap: var(--space-md);
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: white;
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: var(--font-xl);
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    max-height: 200px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

/* Mobile background */
@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/mobile Bg image.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .container {
        padding: 0 15px;
    }

    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: var(--font-sm);
    }

    .header {
        padding: 60px 0 40px;
    }

    .title {
        font-size: var(--font-2xl);
    }

    .subtitle {
        font-size: var(--font-base);
    }

    .card {
        padding: var(--space-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .output-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }

    .card {
        padding: var(--spacing-md);
    }

    .card-title {
        font-size: var(--font-size-lg);
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: var(--spacing-sm);
    }
}

/* Custom Scrollbar */
.meta-output::-webkit-scrollbar {
    width: 8px;
}

.meta-output::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.meta-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.meta-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}