:root {
    --bg-color: #050a1c;
    --card-bg: rgba(15, 30, 60, 0.4);
    --text-color: #e0f0ff;
    --neon-color: #2a88ff;
    --neon-glow: 0 0 10px rgba(42, 136, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Add animated background gradient */
@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(
        -45deg, 
        rgba(10, 15, 30, 1) 0%, 
        rgba(5, 10, 28, 1) 25%, 
        rgba(8, 20, 40, 1) 50%, 
        rgba(5, 10, 28, 1) 75%, 
        rgba(10, 15, 30, 1) 100%
    );
    background-size: 400% 400%;
    animation: gradientBackground 30s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking */
    justify-content: center;
    align-items: center;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 98%; /* Increased from 90% to use more of the screen width */
    max-width: 1800px; /* Increased from 1440px to a much wider size */
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

.glass-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    padding: 30px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 8px 40px rgba(42, 136, 255, 0.2);
}

h1, h2 {
    color: var(--neon-color);
    text-shadow: var(--neon-glow);
    margin-bottom: 20px;
    text-align: center;
}

.ip-display-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.ip-display {
    margin: 0;
    flex-grow: 1;
    padding: 20px;
    border-radius: 8px;
    background: rgba(25, 25, 45, 0.6);
    border: var(--glass-border);
    text-shadow: none;
    letter-spacing: 1px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.copy-button {
    position: absolute;
    right: 30px; /* Increased from 15px to move button further left */
    background: rgba(42, 136, 255, 0.1);
    border: 1px solid rgba(42, 136, 255, 0.3);
    color: var(--neon-color);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(42, 136, 255, 0.2);
    box-shadow: 0 0 10px rgba(42, 136, 255, 0.4);
}

.copy-button .tooltip {
    position: absolute;
    bottom: -30px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-button.copied .tooltip {
    opacity: 1;
}

/* Copy button styles */
.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-color);
    position: relative;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.copy-button svg {
    vertical-align: middle;
}

.copy-button .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.copy-button:hover .tooltip {
    opacity: 1;
}

.copy-success {
    background-color: rgba(76, 175, 80, 0.3) !important;
}

.neon-button {
    background: transparent;
    border: 2px solid var(--neon-color);
    color: var(--neon-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    text-shadow: var(--neon-glow);
}

.neon-button:hover {
    background: var(--neon-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-color);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.history-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 10px;
    background: rgba(25, 25, 45, 0.4);
    border-radius: 8px;
    border: var(--glass-border);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-color) rgba(25, 25, 45, 0.6);
}

.history-container::-webkit-scrollbar {
    width: 8px;
}

.history-container::-webkit-scrollbar-track {
    background: rgba(25, 25, 45, 0.6);
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb {
    background-color: var(--neon-color);
    border-radius: 4px;
}

.history-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(45, 45, 80, 0.4);
    border-radius: 6px;
    border: var(--glass-border);
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.history-number {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: bold;
}

.history-ip {
    font-weight: bold;
}

.history-time {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

#history-count {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 5px;
}

.empty-history {
    text-align: center;
    color: rgba(224, 224, 255, 0.6);
    padding: 20px;
}

/* Add SEO-friendly CSS for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Fixed footer styling */
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: rgba(224, 224, 255, 0.6);
    width: 100%;
    margin-top: 30px;
    position: relative;
    bottom: 0;
}

.footer-link {
    color: var(--neon-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* Navigation styling */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 10px 20px;
    background: var(--card-bg);
    border-radius: 30px;
    border: var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--neon-color);
    text-shadow: var(--neon-glow);
}

/* Content page styling */
.content-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    margin-bottom: 30px;
    padding: 30px;
}

.article-meta {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(224, 224, 255, 0.8);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
    text-align: left;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    text-align: left;
    color: var(--neon-color);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 20px;
    line-height: 1.6;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content code {
    background: rgba(25, 25, 45, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.article-content blockquote {
    border-left: 3px solid var(--neon-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--neon-color);
    font-weight: bold;
}

.faq-answer {
    line-height: 1.6;
}

.blog-list {
    list-style: none;
    padding: 0;
}

.blog-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-list h3 {
    margin-bottom: 10px;
}

.blog-meta {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: rgba(224, 224, 255, 0.7);
}

.blog-excerpt {
    margin-bottom: 15px;
}

.glossary-list {
    list-style: none;
    padding: 0;
}

.glossary-term {
    margin-bottom: 25px;
}

.glossary-heading {
    background: rgba(25, 25, 45, 0.6);
    padding: 10px 15px;
    margin: 30px 0 20px;
    border-radius: 8px;
    border-left: 4px solid var(--neon-color);
}

.term-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--neon-color);
    font-weight: bold;
}

.term-definition {
    line-height: 1.6;
}

/* Add styling for comparison tables in articles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    background: rgba(25, 25, 45, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(42, 136, 255, 0.2);
    color: var(--neon-color);
    font-weight: bold;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(42, 136, 255, 0.1);
}

.code-example {
    display: inline-block;
    background: rgba(25, 25, 45, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    margin: 5px 0;
}

/* Additional styling for keyword-optimized pages */
.subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    text-shadow: none;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: center;
}

.features-card, .secondary-card {
    margin-top: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "✓";
    color: var(--neon-color);
    margin-right: 10px;
    font-weight: bold;
}

.text-link {
    color: var(--neon-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.text-link:hover {
    text-decoration: underline;
    text-shadow: var(--neon-glow);
}

.ip-info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.common-questions {
    margin: 30px 0;
}

.faq-list {
    list-style: none;
    padding: 0;
}

.faq-list li {
    margin-bottom: 20px;
}

.faq-list h4 {
    color: var(--neon-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.result-label {
    margin-top: -20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
    color: rgba(224, 224, 255, 0.7);
}

/* Glossary navigation styling */
.glossary-nav {
    margin: 20px 0;
}

.glossary-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 15px;
    background: rgba(25, 25, 45, 0.4);
    border-radius: 8px;
    border: var(--glass-border);
}

.glossary-nav li {
    margin: 0;
}

.glossary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    background: rgba(42, 136, 255, 0.1);
    border: 1px solid rgba(42, 136, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.glossary-nav a:hover {
    background: rgba(42, 136, 255, 0.3);
    color: var(--neon-color);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

/* Timestamp styling */
.timestamp-container {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(224, 224, 255, 0.7);
    margin: -10px 0 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.timestamp-label {
    opacity: 0.8;
}

#check-time {
    color: var(--neon-color);
    font-weight: 500;
}

#time-ago {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .glossary-nav ul {
        gap: 6px;
    }
    
    .glossary-nav a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .ip-display {
        font-size: 1.8rem;
    }
    
    .history-item {
        grid-template-columns: 30px 1fr;
        grid-template-rows: auto auto;
    }
    
    .history-number {
        grid-row: 1 / 3;
    }
    
    .history-time {
        grid-column: 2;
        text-align: left;
    }
}
