/* General */
body {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    color: #eee;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #bb86fc;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #eee;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    background-color: #bb86fc;
    color: #121212;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 120px 20px 80px;
    background: #121212;
    color: #fff;
    animation: fadeIn 1s ease;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 30px;
    animation: popIn 1.5s ease;
    filter: drop-shadow(0 0 10px #bb86fcaa);
}

.hero-section h1 {
    font-size: 3rem;
    margin: 20px 0 10px;
    color: #bb86fc;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #bbb;
}

.hero-btn {
    width: auto;
    padding: 14px 36px;
    font-size: 1.2rem;
    background: #6a0dad;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 0 20px #6a0dad88;
}

.hero-btn:hover {
    background: #5b0991;
    transform: scale(1.05);
}

/* Home Main (Cards Grid) */
.cards-grid, .home-main {
    flex: 1;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 60px;
    padding: 80px 80px;
}

/* Contact Card */
.contact-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 100%;
    text-align: center;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}


/* Limit width only on homepage cards */
.cards-grid .contact-card {
    max-width: 380px;
}
/* Advertisement Special */
.contact-card.advertisement {
    max-width: 500px; /* Limit ad card width */
}

/* Contact Header */
.contact-header h2 {
    font-size: 2.2rem;
    color: #bb86fc;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Forms */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.subscribe-form input,
.subscribe-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #222;
    color: #fff;
    font-size: 1rem;
    resize: none;
    text-align: center;
    transition: border-color 0.3s;
}

.subscribe-form textarea {
    min-height: 150px;
    max-height: 300px;
}

.subscribe-form input:focus,
.subscribe-form textarea:focus {
    border-color: #bb86fc;
    outline: none;
}

.subscribe-form input::placeholder,
.subscribe-form textarea::placeholder {
    color: #bbb;
    text-align: center;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #6a0dad;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background: #5b0991;
    transform: scale(1.05);
}

/* Subscriber Counter Styling */
#sub-count {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #bb86fc, #6a0dad);
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.5);
    transition: transform 0.3s ease;
}

#sub-count:hover {
    transform: scale(1.05);
}

/* Fix for YouTube Icon */
.youtube-icon {
    width: 26px;
    height: 20px;
    object-fit: contain;
}

/* Fix for Video Responsiveness */
#video-container {
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

#sub-number {
    font-size: 2rem;
    color: #fff;
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    background: #1e1e1e;
    color: #888;
    font-size: 0.9rem;
}

footer a {
    color: #bb86fc;
    text-decoration: underline;
}

footer a:hover {
    color: #6a0dad;
}

/* Toast Notifications */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    opacity: 0;
    transform: translateY(-30px);
    background: #323232;
    color: #fff;
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    min-width: 250px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 5px solid #4CAF50;
}

.toast.error {
    border-left: 5px solid #F44336;
}

.toast.warning {
    border-left: 5px solid #FF9800;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .cards-grid, .home-main {
        padding: 40px 20px;
        gap: 40px;
    }
    .contact-card {
        padding: 2rem 1.5rem;
    }
    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}

/* Guides Grid */
#guides-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.guide-card {
    background: rgba(30, 30, 30, 0.8);
    padding: 25px;
    border-radius: 16px;
    color: #eee;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #bb86fc;
}

.guide-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #bbb;
}

.guide-card .btn {
    display: inline-block;
    width: auto;
    background: #6a0dad;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.guide-card .btn:hover {
    background: #5b0991;
    transform: scale(1.05);
}

/* Neon Glow on Hover */
.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(187, 134, 252, 0.5), 0 0 20px rgba(106, 13, 173, 0.4);
}

/* Guide Content */
.guide-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.guide-content {
    background: rgba(30, 30, 30, 0.8);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 900px;
    text-align: left;
    line-height: 1.7;
    backdrop-filter: blur(15px);
}

.guide-content h1,
.guide-content h2,
.guide-content h3 {
    color: #bb86fc;
    margin-top: 1.5rem;
}

.guide-content p,
.guide-content ul li {
    color: #ccc;
    font-size: 1.05rem;
}

.guide-content a {
    color: #bb86fc;
    font-weight: bold;
    text-decoration: underline;
}

.guide-content a:hover {
    color: #6a0dad;
}

.guide-img {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.guide-img:hover {
    transform: scale(1.02);
}

.guide-content pre {
    background: #222;
    color: #eee;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

.guide-content code {
    background: #333;
    padding: 2px 6px;
    border-radius: 5px;
    color: #bb86fc;
    font-family: monospace;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    #guides-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .guide-content {
        padding: 2rem 1.5rem;
    }
    .guide-img {
        max-width: 100%;
    }
}

.youtube-label {
    font-size: 1rem;
    color: #fff;
    margin-left: 4px;
    font-weight: 500;
}
