.universal-header{position:absolute;top:0;left:0;right:0;background:#4a90e2;z-index:1000;box-shadow:0 2px 10px rgba(74,144,226,.1)}
.header-container{max-width:1200px;margin:0 auto;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.header-left{display:flex;align-items:center;gap:24px}
.brand-name{font-family:'Poppins',sans-serif;font-size:24px;font-weight:700;color:#fff;letter-spacing:-.5px;text-decoration:none;transition:opacity .3s ease}
.brand-name:hover{opacity:.9}
.nav-divider{width:1px;height:24px;background-color:rgba(255,255,255,.3)}
.home-button{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:transparent;color:#fff;text-decoration:none;border-radius:8px;font-weight:500;font-size:15px;font-family:'Inter',sans-serif;transition:all .3s ease;border:1px solid rgba(255,255,255,.2)}
.home-button:hover{background-color:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}
.home-icon{width:18px;height:18px;flex-shrink:0}
.search-wrapper{flex:1;max-width:480px;position:relative}
.search-container{position:relative;width:100%}
.search-input{width:100%;padding:10px 44px 10px 18px;border:none;border-radius:8px;font-size:15px;font-family:'Inter',sans-serif;transition:all .3s ease;background-color:rgba(255,255,255,.15);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff}
.search-input::placeholder{color:rgba(255,255,255,.7)}
.search-input:focus{outline:none;background-color:#fff;color:#2c3e50;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.search-input:focus::placeholder{color:#95a5a6}
.search-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:rgba(255,255,255,.7);pointer-events:none;transition:color .3s ease}
.search-input:focus~.search-icon{color:#4a90e2}
.search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background-color:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:400px;overflow-y:auto;display:none;z-index:1001}
.search-results.show{display:block;animation:fadeIn .2s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.search-result-item{padding:12px 18px;border-bottom:1px solid #f0f4f8;cursor:pointer;transition:all .2s ease;text-decoration:none;display:block;color:inherit}
.search-result-item:last-child{border-bottom:none}
.search-result-item:hover{background-color:#f8fafc}
.search-result-title{font-weight:600;color:#2c3e50;font-size:14px;margin-bottom:2px;font-family:'Inter',sans-serif}
.search-result-title strong{color:#4a90e2}
.search-result-description{font-size:13px;color:#7f8c8d;line-height:1.4;font-family:'Inter',sans-serif}
.search-no-results{padding:24px;text-align:center;color:#7f8c8d;font-size:14px;font-family:'Inter',sans-serif}
body{padding-top:72px!important}
@media (max-width:768px){.header-container{padding:14px 16px;gap:16px}.header-left{gap:16px}.brand-name{font-size:20px}.nav-divider{height:20px}.home-button{padding:6px 12px;font-size:14px}.home-button span{display:none}.search-wrapper{max-width:none}.search-input{padding:9px 40px 9px 16px;font-size:16px}.search-results{border-radius:0 0 12px 12px;max-height:calc(100vh - 80px)}body{padding-top:64px!important}}
@media (max-width:480px){.header-container{padding:12px;gap:12px}.header-left{gap:12px}.brand-name{font-size:18px}.home-button{padding:6px 10px}.home-icon{width:16px;height:16px}.search-input{padding:8px 36px 8px 14px}.search-icon{width:18px;height:18px;right:12px}body{padding-top:60px!important}}

* { margin: 0; padding: 0; box-sizing: border-box; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #f5f7fa; min-height: 100vh; padding: 20px; padding-top: 92px !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.6; }
@media (max-width: 768px) { body { padding-top: 84px !important; } }
@media (max-width: 480px) { body { padding-top: 80px !important; } }
.main-container {
    flex: 1 0 auto; 
    width: 100%;    
    background-color: #f8f9fa;
    padding: 40px 20px;
}
.main-heading { text-align: center; margin-bottom: 30px; }
.main-heading h1 { color: #2c3e50; font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.main-heading p { color: #5a6c7d; font-size: 16px; max-width: 700px; margin: 0 auto; }

.analyzer-container { background-color: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); width: 100%; max-width: 1200px; margin: 20px auto 60px; }
@media (min-width: 992px) {
    .analyzer-container { display: grid; grid-template-columns: 1fr 420px; gap: 40px; padding: 40px 50px; }
    .analyzer-container .main-heading { grid-column: 1 / -1; }
}
@media (max-width: 991px) { .analyzer-container { max-width: 700px; } }

.analyzer-inputs textarea { width: 100%; padding: 18px; border: 2px solid #e1e8ed; border-radius: 12px; font-size: 16px; font-family: inherit; background-color: #fafbfc; resize: vertical; min-height: 400px; height: 60vh; }
.analyzer-inputs textarea:focus { outline: none; border-color: #4a90e2; background-color: white; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); }
.actions { display: flex; gap: 12px; margin-top: 16px; }
.action-button { background-color: #f0f4f8; border: 1px solid #e1e8ed; color: #5a6c7d; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; flex-grow: 1; text-align: center; }
.action-button:hover { background-color: #e1e8ed; color: #2c3e50; }
.action-button.primary { background-color: #4a90e2; color: white; border-color: #4a90e2; }
.action-button.primary:hover { background-color: #3a7cc2; border-color: #3a7cc2; }

.analyzer-results { height: fit-content; }
.results { padding: 24px; background-color: #f8fafc; border-radius: 12px; border: 1px solid #e1e8ed; }
@media (max-width: 991px) { .results { margin-top: 32px; } }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.result-item { background-color: white; padding: 16px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.result-label-container { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.result-label { color: #5a6c7d; font-size: 13px; display: block; }
.result-value { color: #2c3e50; font-size: 20px; font-weight: 600; }

.tooltip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background-color: #d0d7de; color: #5a6c7d; font-size: 11px; font-weight: bold; cursor: help; }
.tooltip .tooltip-text { visibility: hidden; width: 220px; background-color: #34495e; color: #fff; text-align: center; border-radius: 6px; padding: 8px; position: absolute; z-index: 1; bottom: 140%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 12px; font-weight: 400; line-height: 1.4; }
.tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }

.advanced-results { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e1e8ed; }
.advanced-results.hidden { display: none; }
.advanced-results h3 { font-size: 16px; font-weight: 600; color: #34495e; margin-bottom: 12px; }
#keyword-scroll-container { max-height: 180px; overflow-y: auto; padding-right: 8px; display: flex; flex-direction: column; gap: 8px; }
.keyword-item { background-color: white; border: 1px solid #e1e8ed; padding: 8px 12px; border-radius: 8px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.keyword-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keyword-percentage { flex-shrink: 0; font-weight: 600; }

.blog-section { background-color: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); max-width: 1200px; margin: 0 auto; }
@media (min-width: 992px) { .blog-section { padding: 50px 60px; } .blog-content { max-width: 800px; margin: 0 auto; } }
.blog-content { color: #34495e; font-size: 17px; line-height: 1.8; color: #2c3e50; }
.blog-content h2 { font-size: 32px; line-height: 1.3; margin-bottom: 24px; color: #2c3e50; text-align: center; }
.blog-content h3 { color: #34495e; font-size: 22px; font-weight: 600; margin-bottom: 15px; margin-top: 30px; }
.blog-content p, .blog-content ul, .blog-content ol { margin-bottom: 20px; }
.blog-content ul, .blog-content ol { padding-left: 20px; }
.blog-content li { margin-bottom: 10px; }
.blog-content strong { font-weight: 600; color: #2c3e50; }
