/* Publisher Portal Premium Styles */

:root {
    --pub-bg: #050505;
    --pub-text: #ffffff;
    --pub-accent: #6d28d9;
    --pub-surface: #0a0a0a;
    --pub-surface-highlight: #121212;
    --pub-border: rgba(255, 255, 255, 0.08);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --purple-glow: 0 0 100px rgba(109, 40, 217, 0.15);
}

.publisher-page {
    background-color: var(--pub-bg);
    color: var(--pub-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.publisher-page h1, 
.publisher-page h2, 
.publisher-page h3, 
.publisher-page h4,
.publisher-page .font-serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    color: #ffffff;
}

/* Global Overrides for Publisher Page */
body {
    background-color: var(--pub-bg) !important;
}

.navbar {
    background: rgba(5, 5, 5, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    --bs-navbar-brand-color: #fff !important;
    --bs-navbar-color: rgba(255,255,255,0.7) !important;
    --bs-navbar-hover-color: #fff !important;
    --bs-navbar-active-color: #fff !important;
}

/* Invert logos for dark theme */
.navbar-brand img,
footer .logo {
    filter: invert(1) hue-rotate(180deg) brightness(2) !important;
}

.navbar .btn-outline-dark {
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.navbar .btn-outline-dark:hover {
    background-color: #fff !important;
    color: #000 !important;
}

footer {
    background-color: #050505 !important;
    background-image: linear-gradient(rgba(5, 5, 5, 0.364), rgba(5, 5, 5, 0.726)), url('../images/about.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255,255,255,0.7) !important;
}

footer h6, footer h5, footer .h6 {
    color: #ffffff !important;
}

footer a {
    color: rgba(255,255,255,0.6) !important;
}

footer a:hover {
    color: #ffffff !important;
}

footer .text-dark {
    color: rgba(255,255,255,0.8) !important;
}

footer .text-muted {
    color: rgba(255,255,255,0.5) !important;
}

/* Hero Section */
.pub-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0) 0%, var(--pub-bg) 100%);
    padding-top: 80px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.mega-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: #ffffff;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mega-title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: #a78bfa;
    -webkit-text-fill-color: #a78bfa;
}

/* Feature Grid - Bento Style */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.bento-item {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.bento-large {
    grid-column: span 12;
}

.bento-item h3 {
    color: #ffffff;
}

@media (min-width: 992px) {
    .bento-large {
        grid-column: span 8;
    }
    .bento-tall {
        grid-column: span 4;
        grid-row: span 2;
    }
    .bento-medium {
        grid-column: span 4;
    }
}

/* Cards & Pricing */
.pub-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pub-card.h-100 {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.pub-card.featured {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.price-tag {
    font-size: 3.5rem;
    font-family: 'Instrument Serif', serif;
    line-height: 1;
    color: #ffffff;
}

.pub-card h4 {
    color: #ffffff;
}

/* Utilities */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-publisher-primary {
    background: #fff;
    color: #000;
    border-radius: 100px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 10;
    display: inline-block;
    text-decoration: none;
}

.btn-publisher-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn-publisher-primary:hover::before {
    transform: translateX(100%);
}

.btn-publisher-glowing {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 1rem 2.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-publisher-glowing:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #ffffff;
}

/* Animated Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Elements */
.float-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.float-card div {
    color: #ffffff;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Form Inputs - User Friendly */
.publisher-page .form-control,
.publisher-page .form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
}

.publisher-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.publisher-page .form-control:focus,
.publisher-page .form-select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(167, 139, 250, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
    outline: none !important;
}

.publisher-page .form-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
}

.publisher-page .form-check-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.publisher-page .form-check-input:checked {
    background-color: #a78bfa !important;
    border-color: #a78bfa !important;
}

.publisher-page .form-check-label {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Auth Card Styling */
.publisher-page .pub-card {
    background: rgba(15, 15, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Select dropdown options */
.publisher-page .form-select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

/* Alert styling for dark theme */
.publisher-page .alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.publisher-page .alert-success {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #86efac !important;
}

.publisher-page .alert-warning {
    background: rgba(234, 179, 8, 0.15) !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
    color: #fcd34d !important;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and below */
@media (max-width: 991px) {
    .pub-hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .mega-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    /* Bento grid - stack all items */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .bento-item {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .bento-large,
    .bento-tall,
    .bento-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Hide floating cards on mobile */
    .float-card {
        display: none;
    }
    
    /* Pricing cards - 2 per row on tablet */
    .pub-card {
        padding: 1.5rem;
    }
    
    .price-tag {
        font-size: 2.5rem;
    }
}

/* Phone screens */
@media (max-width: 767px) {
    .publisher-page {
        padding-top: 0;
    }
    
    .pub-hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .mega-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .pub-hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons stack on mobile */
    .pub-hero .d-flex.flex-wrap {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .btn-publisher-primary,
    .btn-publisher-glowing {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    /* Bento items */
    .bento-item {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .bento-item h3 {
        font-size: 1.25rem;
    }
    
    .bento-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Bento large row layout fix */
    .bento-large .row {
        flex-direction: column;
    }
    
    .bento-large .col-md-6 {
        width: 100%;
        text-align: left !important;
    }
    
    .bento-large .col-md-6:last-child {
        margin-top: 1.5rem;
    }
    
    /* Pricing section */
    #pricing .display-3 {
        font-size: 2rem;
    }
    
    .pub-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .price-tag {
        font-size: 2rem;
    }
    
    .pub-card ul {
        margin-bottom: 1.5rem !important;
    }
    
    .pub-card ul li {
        font-size: 0.9rem;
    }
    
    /* Pricing buttons */
    .pub-card .btn,
    .pub-card a[class*="btn"] {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Features section heading */
    .py-6 .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    /* Grid background less intense on mobile */
    .grid-bg {
        opacity: 0.5;
    }
    
    /* Hero glow smaller on mobile */
    .hero-glow {
        width: 100vw;
        height: 100vw;
    }
}

/* Small phone screens */
@media (max-width: 480px) {
    .mega-title {
        font-size: 1.8rem;
    }
    
    .pub-hero .lead {
        font-size: 0.9rem;
    }
    
    .bento-item {
        padding: 1rem;
    }
    
    .bento-item h3 {
        font-size: 1.1rem;
    }
    
    .pub-card {
        padding: 1rem;
    }
    
    .price-tag {
        font-size: 1.75rem;
    }
    
    #pricing .display-3 {
        font-size: 1.5rem;
    }
}
