/**
 * Meta Title & Description Checker Tool - Stylesheet
 * Version 4.0
 * @author BulkMaker Team
 */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Gradient Background */
.primary-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SERP Preview Styles */
.serp-preview {
    font-family: Arial, sans-serif;
}

.serp-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.2;
    cursor: pointer;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-url {
    color: #006621;
    font-size: 14px;
}

.serp-description {
    color: #545454;
    font-size: 13px;
    line-height: 1.58;
}

/* Social Media Card Styles */
.facebook-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.twitter-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Tab Navigation */
.tab-active {
    border-bottom: 3px solid #3b82f6;
    color: #3b82f6;
}

/* Code Editor Styles */
pre[class*="language-"] {
    margin: 0;
    padding: 0;
    background: transparent;
}

.code-editor {
    background: #2d2d2d;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

#headCodeEditor {
    resize: vertical;
    min-height: 400px;
}

.code-editor pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Meta Code Display */
.meta-code-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.meta-code-display code {
    display: block;
    font-family: inherit;
}

.meta-code-display .comment {
    color: #6c757d;
    font-style: italic;
    font-weight: 500;
}

.meta-code-display .tag {
    color: #e83e8c;
    font-weight: 500;
}

.meta-code-display .attr {
    color: #0066cc;
}

.meta-code-display .value {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .serp-title {
        font-size: 16px;
    }
    
    .serp-url {
        font-size: 12px;
    }
    
    .serp-description {
        font-size: 12px;
    }
    
    .facebook-card,
    .twitter-card {
        max-width: 100%;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility Classes */
.break-all {
    word-break: break-all;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Breadcrumb Styles */
.breadcrumb {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumb a {
    transition: all 0.2s ease;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* AdSense Container Styles */
.adsense-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 90px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-container ins {
    max-width: 100%;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .serp-preview,
    .facebook-card,
    .twitter-card {
        page-break-inside: avoid;
    }
}

/* Logo Styling */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}