/* 
   HimSecret Premium CSS Styling
   Aesthetics: Deep Mystical Purple & Radiant Cosmic Gold
*/

:root {
    --bg-deep: #0b071e;
    --bg-card: rgba(22, 17, 45, 0.7);
    --gold: #dfb23c;
    --gold-glow: rgba(223, 178, 60, 0.4);
    --text-light: #f5f2fc;
    --text-muted: #b4aed0;
    --accent: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.3);
    --border-color: rgba(223, 178, 60, 0.18);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(157, 78, 221, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(223, 178, 60, 0.08) 0%, transparent 45%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath fill-rule='evenodd' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm1-61c3.16 0 6-2.84 6-6s-2.84-6-6-6-6 2.84-6 6 2.84 6 6 6zm-7 49c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 600;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background: rgba(11, 7, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.logo img {
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--gold-glow);
    animation: pulseGlow 4s infinite alternate;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #c49520 100%);
    color: #110b27;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(223, 178, 60, 0.3);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 178, 60, 0.5);
    color: #110b27;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(223, 178, 60, 0.1);
    color: var(--gold);
}

/* Cards & Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(223, 178, 60, 0.35);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
    display: inline-block;
    text-shadow: 0 0 10px var(--gold-glow);
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Interactive Calculators */
.calculator-section {
    padding: 60px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(11, 7, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-6 {
    flex: 1 1 calc(50% - 10px);
}

/* Compatibility Results */
.result-box {
    margin-top: 30px;
    padding: 25px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 15px;
    text-align: center;
    display: none;
}

.compatibility-score {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    margin: 15px 0;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
    border-radius: 10px;
    transition: width 1.5s ease-out;
}

/* Tarot CSS 3D Card Flip */
.tarot-board {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.tarot-card-container {
    perspective: 1000px;
    width: 180px;
    height: 280px;
    cursor: pointer;
}

.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.tarot-card-container:hover .tarot-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(223, 178, 60, 0.2);
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.tarot-card-front {
    background: linear-gradient(135deg, #1b143c 0%, #0d0924 100%);
    border: 2px solid var(--gold);
    transform: rotateY(180deg);
}

.tarot-card-back {
    background: linear-gradient(135deg, #0d0924 0%, #150e32 100%);
    border: 2px dashed rgba(223, 178, 60, 0.4);
    color: var(--gold);
}

.tarot-card-back::before {
    content: '✧';
    font-size: 50px;
    opacity: 0.8;
    text-shadow: 0 0 10px var(--gold-glow);
}

.tarot-card-front h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.tarot-card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tarot-card-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.tarot-reading-result {
    margin-top: 40px;
    padding: 30px;
    background: rgba(11, 7, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: none;
    text-align: left;
}

.tarot-reading-result h3 {
    margin-bottom: 20px;
    text-align: center;
}

.tarot-result-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.tarot-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tarot-result-item strong {
    color: var(--gold);
    font-family: var(--font-heading);
}

/* Ebooks Grid */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.ebook-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebook-img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.ebook-card:hover .ebook-img {
    transform: translateY(-5px) scale(1.03);
}

.ebook-card h3 {
    margin-bottom: 15px;
    text-align: center;
}

.ebook-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ebook-actions {
    text-align: center;
}

/* Blog Section */
.blog-header {
    text-align: center;
    padding: 80px 0 40px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.blog-card-meta {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Article Styling */
.article-section {
    padding: 60px 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1.5px solid var(--border-color);
}

.quick-takeaway {
    background: rgba(157, 78, 221, 0.12);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.quick-takeaway h3 {
    font-size: 16px;
    color: var(--gold);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-takeaway p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.article-meta {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-container h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.article-content {
    font-size: 17px;
    color: var(--text-light);
}

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

.article-content h2,
.article-content h3 {
    margin: 35px 0 15px 0;
}

.article-cta {
    background: rgba(223, 178, 60, 0.08);
    border: 1.5px solid var(--gold);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 17px;
    margin: 0 0 8px 0;
}

.faq-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 45px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.author-box strong {
    color: var(--text-light);
}

.disclosure-note {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Footer Section */
footer {
    background-color: #060411;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 14px;
}

/* Animations */
@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 10px var(--gold-glow);
    }
    100% {
        text-shadow: 0 0 25px rgba(223, 178, 60, 0.7);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-deep);
        border-bottom: 1.5px solid var(--border-color);
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-6 {
        flex: 1 1 100%;
    }
}

/* E-E-A-T Author & Editorial Styles */
.author-bio {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(223, 178, 60, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-top: 50px;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}
.author-details {
    flex: 1;
}
.author-details h5 {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 16px;
}
.author-details p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 576px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

