/* Meta Tags Checker Tool - Custom Styles */

/* Custom color definitions */
:root {
    --facebook-blue: #1877f2;
    --twitter-blue: #1da1f2;
    --linkedin-blue: #0a66c2;
    --pinterest-red: #bd081c;
    --slack-aubergine: #4a154b;
    --discord-blurple: #5865f2;
    --telegram-blue: #0088cc;
    --whatsapp-green: #25d366;
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --teal-gradient: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

/* Custom utility classes */
.bg-facebook {
    background-color: var(--facebook-blue);
}

.bg-twitter {
    background-color: var(--twitter-blue);
}

.bg-linkedin {
    background-color: var(--linkedin-blue);
}

.bg-pinterest {
    background-color: var(--pinterest-red);
}

.bg-slack {
    background-color: var(--slack-aubergine);
}

.bg-discord {
    background-color: var(--discord-blurple);
}

.bg-telegram {
    background-color: var(--telegram-blue);
}

.bg-whatsapp {
    background-color: var(--whatsapp-green);
}

.text-facebook {
    color: var(--facebook-blue);
}

.text-twitter {
    color: var(--twitter-blue);
}

.text-linkedin {
    color: var(--linkedin-blue);
}

.text-pinterest {
    color: var(--pinterest-red);
}

.text-slack {
    color: var(--slack-aubergine);
}

.text-discord {
    color: var(--discord-blurple);
}

.text-telegram {
    color: var(--telegram-blue);
}

.text-whatsapp {
    color: var(--whatsapp-green);
}

/* Animated progress circle */
.seo-score-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
}

/* Input field with icon */
.input-icon {
    position: absolute;
    top: 32px;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Social media preview cards */
.social-preview-card {
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.facebook-preview {
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
}

.facebook-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f2f5;
}

.facebook-preview-content {
    padding: 12px;
    border-top: 1px solid #e4e6ea;
}

.facebook-preview-url {
    color: #65676b;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.facebook-preview-title {
    color: #1c1e21;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.facebook-preview-description {
    color: #65676b;
    font-size: 14px;
    line-height: 1.3;
}

.twitter-preview {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    width: 100%;
    max-width: 350px; /* Twitter card width */
}

.twitter-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f7f9fa;
}

.twitter-preview-content {
    padding: 12px;
}

.twitter-preview-title {
    color: #14171a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.twitter-preview-description {
    color: #5b7083;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.twitter-preview-url {
    color: #5b7083;
    font-size: 15px;
}

/* LinkedIn Preview */
.linkedin-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: 390px; /* LinkedIn share width */
}

.linkedin-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f6f8;
}

.linkedin-preview-content {
    padding: 12px;
}

.linkedin-preview-title {
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 4px;
}

.linkedin-preview-description {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.33;
    margin-bottom: 8px;
}

.linkedin-preview-url {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    text-transform: lowercase;
}

/* Pinterest Preview */
.pinterest-preview {
    border-radius: 16px;
    background: white;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: 200px; /* Pinterest pin width */
}

.pinterest-preview-image {
    width: 100%;
    height: 280px; /* Taller aspect ratio like real pins */
    object-fit: cover;
    background: #f0f0f0;
}

.pinterest-preview-content {
    padding: 12px;
}

.pinterest-preview-title {
    color: #211922;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.pinterest-preview-description {
    color: #767676;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.pinterest-preview-url {
    color: #767676;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Slack Preview */
.slack-preview {
    border-left: 4px solid #36c5f0;
    background: #f8f8f8;
    padding: 12px;
    border-radius: 4px;
    font-family: "Slack-Lato", appleLogo, sans-serif;
    width: 100%;
    max-width: 300px; /* Slack unfurl width */
}

.slack-preview-title {
    color: #1d1c1d;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
}

.slack-preview-description {
    color: #1d1c1d;
    font-size: 13px;
    line-height: 1.38462;
    margin-bottom: 4px;
}

.slack-preview-url {
    color: #0576b9;
    font-size: 13px;
    text-decoration: none;
}

/* Discord Preview */
.discord-preview {
    background: #36393f;
    border-radius: 4px;
    border-left: 4px solid #7289da;
    padding: 12px;
    font-family: "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 320px; /* Discord embed width */
}

.discord-preview-title {
    color: #00b0f4;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.discord-preview-description {
    color: #dcddde;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.discord-preview-url {
    color: #00b0f4;
    font-size: 12px;
}

/* Telegram Preview */
.telegram-preview {
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: 280px; /* Telegram preview width */
}

.telegram-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f7f9fc;
}

.telegram-preview-content {
    padding: 12px;
}

.telegram-preview-title {
    color: #222222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 4px;
}

.telegram-preview-description {
    color: #707579;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.telegram-preview-url {
    color: #54a9eb;
    font-size: 13px;
}

/* WhatsApp Preview */
.whatsapp-preview {
    background: #e5ddd5;
    border-radius: 7px;
    padding: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    max-width: 260px; /* WhatsApp preview bubble width */
}

.whatsapp-preview-card {
    background: white;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-preview-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f0f2f5;
}

.whatsapp-preview-content {
    padding: 12px;
}

.whatsapp-preview-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
}

.whatsapp-preview-description {
    color: #8696a0;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.whatsapp-preview-url {
    color: #8696a0;
    font-size: 13px;
}

/* Meta tag analysis tables */
.meta-tag-table {
    width: 100%;
    border-collapse: collapse;
}

.meta-tag-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.meta-tag-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.meta-tag-name {
    font-family: "Monaco", "Menlo", "Consolas", monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1e40af;
}

.meta-tag-content {
    font-size: 14px;
    color: #374151;
    word-break: break-word;
}

.meta-tag-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-good {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
}

.status-missing {
    background: #f3f4f6;
    color: #6b7280;
}

/* SEO score indicators */
.seo-score-good {
    color: #059669;
}

.seo-score-fair {
    color: #d97706;
}

.seo-score-poor {
    color: #dc2626;
}

/* Recommendation cards */
.recommendation-card {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

.recommendation-card.high-priority {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.recommendation-card.medium-priority {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.recommendation-card.low-priority {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.recommendation-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.recommendation-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Loading animations */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-preview-card {
        max-width: 100%;
    }

    .meta-tag-table {
        font-size: 14px;
    }

    .meta-tag-table th,
    .meta-tag-table td {
        padding: 8px;
    }
}

/* Tool-specific animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for code blocks */
.meta-content-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.meta-content-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.meta-content-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.meta-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Export button hover effects */
.export-btn {
    transition: all 0.2s ease-in-out;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Image placeholder for missing og:image */
.image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    border: 2px dashed #d1d5db;
}
