/*
Theme Name: Linkoba
Theme URI: https://linkoba.com
Author: Linkoba
Description: Premium auto-link detection theme with animations & ads support.
Version: 2.2.0
License: Private
Text Domain: linkoba
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050508;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); } 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Background */
.linkoba-bg {
    position: fixed; inset: 0; z-index: -1;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 0% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #050508 0%, #0a0a12 50%, #050508 100%);
}
.linkoba-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Container */
.linkoba-container {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px; padding-top: 30px;
}

/* Ad Spots */
.linkoba-ad { width: 100%; max-width: 728px; margin: 0 auto 20px; min-height: 90px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 12px; animation: fadeIn 0.5s ease; }
.linkoba-ad-mobile { display: none; max-width: 320px; min-height: 100px; }
.linkoba-ad-inline { margin: 20px auto; max-width: 100%; min-height: 250px; }
@media (max-width: 768px) {
    .linkoba-ad-desktop { display: none; }
    .linkoba-ad-mobile { display: flex; }
}

/* Guide Box */
.linkoba-guide { width: 100%; max-width: 480px; margin-bottom: 20px; padding: 16px 20px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 14px; animation: fadeInUp 0.6s ease; }
.linkoba-guide-title { font-size: 13px; font-weight: 600; color: #10b981; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.linkoba-guide-title svg { width: 16px; height: 16px; }
.linkoba-guide-text { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.linkoba-guide-text strong { color: #10b981; }

/* Card */
.linkoba-card {
    width: 100%; max-width: 480px;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.9) 0%, rgba(8, 8, 15, 0.95) 100%);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px; padding: 32px 28px;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.05), 0 30px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative; overflow: hidden;
    animation: fadeInUp 0.7s ease;
}
.linkoba-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent); }

/* Logo */
.linkoba-logo { text-align: center; margin-bottom: 28px; animation: fadeIn 0.8s ease; }
.linkoba-logo-text { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.linkoba-logo-text .link { color: #6366f1; text-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
.linkoba-logo-text .oba { background: linear-gradient(135deg, #ec4899, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.linkoba-tagline { font-size: 10px; color: rgba(255, 255, 255, 0.35); text-transform: uppercase; letter-spacing: 4px; margin-top: 6px; }

/* File Info */
.linkoba-file-info { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); animation: fadeInUp 0.8s ease 0.1s both; }
.linkoba-file-icon { width: 72px; height: 72px; margin: 0 auto 18px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12)); border-radius: 20px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.08); animation: float 3s ease-in-out infinite; }
.linkoba-file-icon svg { width: 36px; height: 36px; color: #6366f1; }
.linkoba-file-title { font-size: 18px; font-weight: 600; color: #ffffff; margin-bottom: 10px; line-height: 1.4; word-break: break-word; }
.linkoba-file-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.linkoba-secure-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); padding: 4px 10px; border-radius: 20px; font-size: 10px; color: #10b981; font-weight: 500; }
.linkoba-secure-badge svg { width: 12px; height: 12px; }

/* Timer */
.linkoba-timer-section { text-align: center; padding: 24px; background: rgba(99, 102, 241, 0.03); border: 1px solid rgba(99, 102, 241, 0.1); border-radius: 16px; margin-bottom: 20px; animation: fadeInUp 0.8s ease 0.2s both; }
.linkoba-timer-label { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; }
.linkoba-timer { position: relative; width: 100px; height: 100px; margin: 0 auto 16px; }
.linkoba-timer-circle { width: 100%; height: 100%; transform: rotate(-90deg); }
.linkoba-timer-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 4; }
.linkoba-timer-progress { fill: none; stroke: url(#timerGradient); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.linkoba-timer-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #6366f1; text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
.linkoba-timer-status { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.linkoba-timer-status.ready { color: #10b981; }

/* Buttons */
.linkoba-buttons { display: flex; flex-direction: column; gap: 12px; }
.linkoba-btn { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; animation: slideIn 0.5s ease both; }
.linkoba-btn:nth-child(1) { animation-delay: 0.3s; }
.linkoba-btn:nth-child(2) { animation-delay: 0.4s; }
.linkoba-btn:nth-child(3) { animation-delay: 0.5s; }
.linkoba-btn:nth-child(4) { animation-delay: 0.6s; }
.linkoba-btn.disabled { opacity: 0.5; pointer-events: none; }
.linkoba-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08)); opacity: 0; transition: opacity 0.3s ease; }
.linkoba-btn:not(.disabled):hover { border-color: rgba(99, 102, 241, 0.3); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15); }
.linkoba-btn:not(.disabled):hover::before { opacity: 1; }
.linkoba-btn-left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.linkoba-btn-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }

/* Host Colors */
.linkoba-btn-icon.hubcloud { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.linkoba-btn-icon.gdflix { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.linkoba-btn-icon.gdrive, .linkoba-btn-icon.drive { background: linear-gradient(135deg, #4285f4, #1a73e8); color: #fff; }
.linkoba-btn-icon.mega { background: linear-gradient(135deg, #d9272e, #c41e24); color: #fff; }
.linkoba-btn-icon.mediafire { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.linkoba-btn-icon.terabox { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.linkoba-btn-icon.pixeldrain { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.linkoba-btn-icon.gofile { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.linkoba-btn-icon.filepress { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; }
.linkoba-btn-icon.hdhub { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.linkoba-btn-icon.default { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }

.linkoba-btn-info h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.linkoba-btn-info span { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.linkoba-btn-action { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #6366f1, #ec4899); padding: 12px 20px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; position: relative; z-index: 1; transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25); }
.linkoba-btn:not(.disabled):hover .linkoba-btn-action { transform: scale(1.05); box-shadow: 0 6px 25px rgba(99, 102, 241, 0.35); }
.linkoba-btn-action svg { width: 16px; height: 16px; }

/* No Links */
.linkoba-no-links { text-align: center; padding: 50px 20px; color: rgba(255, 255, 255, 0.4); animation: fadeIn 0.5s ease; }
.linkoba-no-links svg { width: 56px; height: 56px; margin-bottom: 18px; opacity: 0.3; }
.linkoba-no-links p { font-size: 15px; }

/* Embed */
.linkoba-embed-section { margin-top: 24px; animation: fadeInUp 0.8s ease 0.4s both; }
.linkoba-embed-title { font-size: 12px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; text-align: center; }
.linkoba-embed-container { position: relative; width: 100%; padding-bottom: 56.25%; background: rgba(0, 0, 0, 0.3); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
.linkoba-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Footer */
.linkoba-footer { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); animation: fadeIn 0.8s ease 0.5s both; }
.linkoba-footer p { font-size: 11px; color: rgba(255, 255, 255, 0.25); margin-bottom: 12px; }
.linkoba-footer-guide { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.linkoba-footer-guide a { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.4); padding: 6px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; transition: all 0.2s ease; }
.linkoba-footer-guide a:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.linkoba-footer-guide svg { width: 14px; height: 14px; }

/* Redirect Popup */
.linkoba-popup { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.linkoba-popup.active { display: flex; }
.linkoba-popup-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px); animation: fadeIn 0.3s ease; }
.linkoba-popup-box { position: relative; width: 100%; max-width: 400px; background: linear-gradient(145deg, rgba(15, 15, 25, 0.98), rgba(8, 8, 15, 0.99)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 32px 28px; text-align: center; animation: fadeInUp 0.4s ease; }
.linkoba-popup-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.linkoba-popup-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.linkoba-popup-close svg { width: 16px; height: 16px; }
.linkoba-popup-icon { width: 80px; height: 80px; margin: 0 auto 24px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15)); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 2s ease-in-out infinite; }
.linkoba-popup-icon svg { width: 40px; height: 40px; color: #6366f1; }
.linkoba-popup-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.linkoba-popup-text { font-size: 14px; color: rgba(255, 255, 255, 0.5); margin-bottom: 24px; }
.linkoba-popup-timer { font-size: 56px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; line-height: 1; }
.linkoba-popup-progress { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.linkoba-popup-progress-bar { height: 100%; background: linear-gradient(90deg, #6366f1, #ec4899); border-radius: 3px; width: 0%; transition: width 1s linear; }
.linkoba-popup-host { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-bottom: 24px; }
.linkoba-popup-host span { color: #6366f1; font-weight: 600; }

/* Popup Ad */
.linkoba-popup-ad { width: 100%; min-height: 100px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 11px; margin-bottom: 24px; }

.linkoba-popup-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px 32px; background: linear-gradient(135deg, #6366f1, #ec4899); border: none; border-radius: 14px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; text-decoration: none; box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3); transition: all 0.3s ease; opacity: 0.5; pointer-events: none; }
.linkoba-popup-btn.active { opacity: 1; pointer-events: auto; animation: glow 2s ease-in-out infinite; }
.linkoba-popup-btn.active:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4); }
.linkoba-popup-btn svg { width: 20px; height: 20px; }

/* Mobile */
@media (max-width: 640px) {
    .linkoba-container { padding: 16px; padding-bottom: 100px; padding-top: 20px; }
    .linkoba-card { padding: 24px 20px; border-radius: 24px; }
    .linkoba-logo-text { font-size: 28px; }
    .linkoba-file-title { font-size: 16px; }
    .linkoba-btn { padding: 14px 16px; }
    .linkoba-btn-action { padding: 10px 16px; font-size: 12px; }
    .linkoba-btn-action span { display: none; }
    .linkoba-guide { padding: 14px 16px; }
    .linkoba-popup-timer { font-size: 48px; }
    .linkoba-footer-guide { gap: 8px; }
    .linkoba-footer-guide a { padding: 5px 10px; font-size: 10px; }
}

/* Mobile Bar */
.linkoba-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(5, 5, 8, 0.95); backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px; z-index: 1000; }
@media (max-width: 640px) { .linkoba-mobile-bar { display: block; } }
.linkoba-mobile-bar .linkoba-quick-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; background: linear-gradient(135deg, #6366f1, #ec4899); border: none; border-radius: 14px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
.linkoba-mobile-bar .linkoba-quick-btn.disabled { opacity: 0.5; pointer-events: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }


/* Ad Spot Placeholder */
.linkoba-ad-spot {
    width: 100%;
    max-width: 480px;
    min-height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
