/* Modern Base Styles */
:root {
    --primary-color: #0095ff;
    --secondary-color: #C730F8;
    --success-color: #00ff00;
    --warning-color: #ffa500;
    --danger-color: #ff4444;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", monospace;
    font-size: 100%;
    background: #101214 !important;
    margin: auto;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
}

.subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Container */
.wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo .img-logo {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

/* Title Section */
.title-head {
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Terminal Window */
.terminal-window {
    background: rgba(30, 32, 34, 0.96) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.terminal-window header {
    background: var(--bg-tertiary);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.window-controls .button:hover {
    opacity: 0.8;
}

.window-controls .button.red {
    background: #ff5f56;
}

.window-controls .button.yellow {
    background: #ffbd2e;
}

.window-controls .button.green {
    background: #27c93f;
}

/* Terminal Header Flex Layout */
.terminal-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem 0 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: relative;
    z-index: 2;
}

.terminal-header-logo {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
}

.img-logo-terminal {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: #181a1b;
    border: 2px solid var(--border-color);
    object-fit: cover;
    margin-right: 0.5rem;
}

.terminal-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.terminal-header-title {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: #00ffae;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0,255,174,0.10);
}

.terminal-header-subtitle {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 0.92rem;
    color: #6cf;
    font-weight: 400;
    margin-top: 0.1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-header-subtitle strong {
    color: #00e0ff;
    font-weight: 700;
}

.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 768px) {
    .terminal-header-flex {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
    .terminal-header-logo {
        margin-right: 0.5rem;
    }
    .img-logo-terminal {
        width: 36px;
        height: 36px;
    }
    .terminal-header-text {
        padding-right: 0.5rem;
        align-items: flex-start;
    }
    .terminal-header-title {
        font-size: 1rem;
    }
    .terminal-header-subtitle {
        font-size: 0.8rem;
    }
}

/* Remove old header styles if present */
.window-title, .title-text, .subtitle-text { display: none !important; }

/* Terminal Section */
.terminal-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.section-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-content {
    padding: 0 1rem;
}

/* Banner Text */
.banner-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.banner-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.banner-line.warning {
    color: var(--warning-color);
    font-weight: 500;
}

.banner-line.quote {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
}

/* IP Information */
.ip-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ip-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-ip {
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.scan-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
}

.scan-status.cached {
    color: var(--text-secondary);
}

.scan-status.new {
    color: var(--success-color);
}

.scan-status.error {
    color: var(--danger-color);
    background: rgba(255, 68, 68, 0.1);
}

/* IP Details */
.ip-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 500;
}

.score-ok {
    color: var(--success-color);
}

.score-warning {
    color: var(--warning-color);
}

/* Action Buttons */
.ip-actions {
    display: flex;
    gap: 1rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 149, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Traffic Info */
.traffic-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.separator {
    color: var(--text-muted);
}

/* Server Status */
.status-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animated server status */
.status-running {
    color: #39ff14;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-running .pulse-dot {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    background: #39ff14;
    border-radius: 50%;
    margin-right: 0.3em;
    box-shadow: 0 0 8px #39ff14, 0 0 16px #39ff14;
    animation: pulse-dot 1.2s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.status-running .running-text {
    animation: blink-running 1.2s steps(1) infinite;
}
@keyframes blink-running {
    0%, 80%, 100% { opacity: 1; }
    40% { opacity: 0.7; }
}

/* Security notice improvements */
.security-notice {
    background: rgba(65, 160, 255, 0.15);
    border: 1px solid rgba(65, 160, 255, 0.3);
    border-radius: 8px;
    color: #e8e6e3;
    padding: 0.6rem 1.2rem;
    margin: 1rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 12px rgba(0,149,255,0.06);
    font-size: 0.9rem;
    max-width: 700px;
    text-align: center;
}

.security-notice i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.security-notice span {
    line-height: 1.4;
}

.security-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.security-notice a:hover {
    color: #00b4ff;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 149, 255, 0.3);
}

.social-link i {
    font-size: 1.25rem;
}

.social-link.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-link.email:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 0.5rem 0 0.3rem 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%) !important;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.aipdb-badge {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.aipdb-badge img {
    width: 240px;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.aipdb-badge img:hover {
    transform: scale(1.05);
    filter: brightness(1.5) contrast(1.3) saturate(1.2);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.aipdb-text {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1.4;
}

.copyright-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 0.2rem;
}

.copyright-text a {
    color: var(--text-primary);
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wrap {
        padding: 1.5rem 1rem;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo .img-logo {
        width: 150px;
    }

    .terminal-window header {
        height: 50px;
    }

    .ip-details {
        grid-template-columns: 1fr;
    }

    .status-container {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .ip-actions {
        flex-direction: column;
    }

    .btn-link {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--bg-primary);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--text-primary);
} 

/* Centered logo above terminal */
.logo-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* iTerm-style terminal header */
.iterm-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(30, 32, 34, 0.98);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom: 1px solid var(--border-color);
    min-height: 64px;
    padding: 0.5rem 1.5rem 0.5rem 1.2rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    z-index: 2;
}

.iterm-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 1.5rem;
    margin-top: 0.3rem;
}

.iterm-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 0.5rem;
}

.iterm-title {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #39ff14;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 0 2px 12px rgba(57,255,20,0.10);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iterm-subtitle {
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 1rem;
    color: #6cf;
    font-weight: 400;
    text-align: center;
    margin-top: 0.1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iterm-subtitle strong {
    color: #00e0ff;
    font-weight: 700;
}

.terminal-window {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 48px 0 rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.18);
    background: rgba(30, 32, 34, 0.98) !important;
}

/* AbuseIPDB badge card */
.aipdb-badge-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.07);
    padding: 0.5rem 1rem;
    margin: 1rem auto 0.5rem auto;
    max-width: 220px;
    min-width: 120px;
}
.aipdb-badge-card img {
    width: 120px;
    height: auto;
    border-radius: 5px;
}

/* Remove old terminal-header styles */
.terminal-header-flex, .terminal-header-logo, .img-logo-terminal, .terminal-header-text, .terminal-header-title, .terminal-header-subtitle { display: none !important; }

@media (max-width: 768px) {
    .logo-centered {
        margin-bottom: 1rem;
    }
    .iterm-header {
        flex-direction: column;
        align-items: stretch;
        min-height: 56px;
        padding: 0.5rem 0.5rem 0.5rem 0.7rem;
    }
    .iterm-controls {
        margin-right: 0.5rem;
    }
    .iterm-title {
        font-size: 0.92rem;
    }
    .iterm-subtitle {
        font-size: 0.8rem;
    }
    .aipdb-badge-card {
        padding: 1rem 0.5rem;
        max-width: 98vw;
    }
    .aipdb-badge-card img {
        width: 98vw;
        max-width: 200px;
    }
    .security-notice {
        font-size: 0.98rem;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
        gap: 0.7rem;
    }
    .security-notice i {
        font-size: 1.3rem;
    }
} 

.iterm-title-left {
    font-size: 0.92rem !important;
    color: #39ff14;
    text-align: left !important;
    font-weight: 600;
    padding-left: 0.2rem;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    text-shadow: 0 1px 6px rgba(57,255,20,0.10);
    line-height: 1.1;
    height: 100%;
    display: flex;
    align-items: center;
}
.iterm-title-group {
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
    min-width: 0;
    margin-left: 0.5rem;
}
.iterm-header {
    min-height: 26px !important;
    height: 32px !important;
    padding: 0.05rem 0.5rem 0.05rem 0.5rem !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center !important;
}
.iterm-controls {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
@media (max-width: 768px) {
    .iterm-header {
        min-height: 22px !important;
        height: 26px !important;
        padding: 0.01rem 0.2rem 0.01rem 0.2rem !important;
    }
    .iterm-title-left {
        font-size: 0.82rem !important;
    }
}

.terminal-info-block {
    background: rgba(20, 22, 24, 0.98);
    border-radius: 10px;
    padding: 1.1rem 1.2rem 1.1rem 1.2rem;
    margin: 1.2rem 0 0.7rem 0;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 0.98rem;
    color: #e8e6e3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow-x: auto;
}
.terminal-info-block div {
    margin-bottom: 0.15em;
}
.terminal-info-block .prompt {
    color: #00bfff;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.1em;
}
.terminal-info-block .command {
    color: #fff;
    font-weight: 500;
    display: inline-block;
}
.terminal-info-block .output {
    color: #b0b0b0;
    font-weight: 400;
    margin-left: 1.5em;
    display: block;
    margin-bottom: 1.1em;
}
.terminal-info-block .comment {
    color: #6cf;
    font-style: italic;
    margin-left: 1.5em;
    display: block;
}
@media (max-width: 768px) {
    .terminal-info-block {
        font-size: 0.89rem;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    }
} 

.highlight-energy {
    color: #00e0ff;
    font-weight: 600;
}
.highlight-equation {
    color: #c730f8;
    font-weight: 600;
}
.highlight-nothing {
    color: #ff4b82;
    font-weight: 600;
}
.highlight-time {
    color: #ffb300;
    font-weight: 600;
}
.highlight-random {
    color: #39ff14;
    font-weight: 600;
}
.banner-line.comment {
    color: #6cf;
    font-style: italic;
    font-size: 0.98em;
    margin-bottom: 0.2em;
} 