/* eSIM Magic — Custom Styles */

:root {
    --esim-primary: #6C63FF;
    --esim-secondary: #3F3D9E;
    --esim-dark: #1a1a2e;
    --esim-gradient: linear-gradient(135deg, #6C63FF, #3F3D9E, #1a1a2e);
    --esim-gradient-light: linear-gradient(135deg, #6C63FF, #8B83FF);
    --esim-shadow: 0 4px 20px rgba(108, 99, 255, 0.15);
    --esim-radius: 12px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d2d2d;
    background-color: #fff;
    background-image: url('../img/sim-sketch.svg');
    background-repeat: repeat;
    background-size: 1000px 800px;
}

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

.animated-gradient {
    background: linear-gradient(135deg, #6C63FF, #3F3D9E, #1a1a2e, #3F3D9E, #6C63FF);
    background-size: 400% 400%;
    animation: gradientShift 48s ease infinite;
    background-attachment: fixed;
}

/* Navbar */
.esim-navbar {
    padding: 1rem 0;
    margin-bottom: 0;
    box-shadow: none;
}

.esim-navbar .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.esim-navbar .nav-link {
    font-weight: 500;
    transition: opacity 0.2s;
}

.esim-navbar .nav-link:hover {
    opacity: 0.85;
}

/* Navbar CTA button */
.btn-nav-cta {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: transparent;
    border-color: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    opacity: 1;
    position: relative;
}

.btn-nav-cta:hover::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #6C63FF, #3F3D9E);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Affiliate Banner */
.affiliate-banner {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0;
}

.affiliate-banner:hover {
    opacity: 0.95;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Section Title */
.section-title {
    color: var(--esim-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--esim-gradient-light);
    border-radius: 2px;
}

/* Article Cards */
.article-card {
    border: none;
    border-radius: var(--esim-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--esim-shadow);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-placeholder {
    height: 200px;
    background: var(--esim-gradient);
}

.article-card .card-title a:hover {
    color: var(--esim-primary) !important;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--esim-dark);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--esim-secondary);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--esim-radius);
    margin: 1rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--esim-primary);
    padding: 1rem 1.5rem;
    background: #f8f9ff;
    border-radius: 0 var(--esim-radius) var(--esim-radius) 0;
    margin: 1.5rem 0;
}

.article-cover {
    max-height: 400px;
    object-fit: cover;
}

/* CTA Box */
.cta-box {
    background: var(--esim-gradient);
}

/* CTA Button */
.btn-cta {
    background: var(--esim-gradient-light);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #5b53e0, #7a72ff);
    color: white;
    transform: translateY(-1px);
}

/* Primary button override */
.btn-primary {
    background: var(--esim-primary);
    border-color: var(--esim-primary);
}

.btn-primary:hover {
    background: var(--esim-secondary);
    border-color: var(--esim-secondary);
}

.btn-outline-primary {
    color: var(--esim-primary);
    border-color: var(--esim-primary);
}

.btn-outline-primary:hover {
    background: var(--esim-primary);
    border-color: var(--esim-primary);
}

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--esim-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sidebar-widget a {
    color: var(--esim-dark);
    transition: color 0.2s;
}

.sidebar-widget a:hover {
    color: var(--esim-primary);
}

.sidebar-cta {
    background: var(--esim-gradient);
}

/* Pagination */
.page-link {
    color: var(--esim-primary);
    border-radius: 8px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: var(--esim-primary);
    border-color: var(--esim-primary);
}

/* Badge */
.badge.bg-primary {
    background: var(--esim-primary) !important;
}

.badge.bg-secondary {
    background: #6c757d !important;
}

/* Tag Style — gradient background, white text */
.tag-badge {
    background: linear-gradient(135deg, #6C63FF, #3F3D9E) !important;
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    border: none;
    transition: opacity 0.2s, transform 0.2s;
}

.tag-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Feature Icon */
.feature-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
}

.feature-icon i {
    font-size: 2rem;
}

/* Footer */
.esim-footer {
    background: var(--esim-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.esim-footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--esim-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Text Primary */
.text-primary {
    color: var(--esim-primary) !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--esim-dark);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .article-content {
        font-size: 1rem;
    }
}
