/* Base Variables */
:root {
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #310a5e;
    --bg-gradient-3: #1e1b4b;
    --bg-gradient-4: #083344;
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-accent: #00f2fe;

    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(-45deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3), var(--bg-gradient-4));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Animated Background */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typography Details */
.gradient-text {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-green { color: #10b981; }

.hero-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out forwards;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    padding: 0 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 242, 254, 0.15);
}

/* Main IP Display */
.ip-card {
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
}

.ip-display-wrapper {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ip-address {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    word-break: break-all;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Buttons */
.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(118, 75, 162, 0.5);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(118, 75, 162, 0.6);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn.success {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    box-shadow: 0 10px 20px -5px rgba(11, 163, 96, 0.5);
}

/* Grid Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-accent);
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.detail-info strong {
    font-size: 1.1rem;
    font-weight: 600;
}

/* SEO Content Section */
.secondary-card {
    margin-top: 2rem;
    padding: 2rem;
}

.secondary-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.secondary-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.secondary-card ul {
    list-style: none;
}

.secondary-card li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Ad Spaces Placements */
.ad-space {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.header-ad { width: 100%; max-width: 728px; height: 90px; margin-top: 1rem; }
.footer-ad { width: 100%; max-width: 728px; height: 90px; margin-bottom: 2rem; }

.side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    display: none; /* Hidden by default for mobile */
}

.left-ad { left: 1rem; }
.right-ad { right: 1rem; }

/* Language Selector */
.language-selector-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.language-dropdown {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    transition: var(--transition);
}

.language-dropdown:hover {
    border-color: var(--text-accent);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.language-dropdown option {
    background: var(--bg-gradient-3);
    color: white;
}

/* Media Queries for Ads and Layout */
@media (min-width: 1400px) {
    .side-ad { display: flex; } /* Show side ads only on very large screens to not break the UI */
}

@media (max-width: 768px) {
    .glass-card { padding: 1.5rem; }
    .header-ad, .footer-ad { width: 100%; max-width: 320px; height: 100px; }
}

/* Generic Footer */
.main-footer {
    padding: 3rem 1.5rem;
    width: 100%;
    margin-top: auto; /* Push to bottom */
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-accent);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--text-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.agency-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
}

.agency-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
