/*
 * Dark Theme Stylesheet for Imran Khan Farooq Personal Website
 * This file enhances the dark theme with additional styles
 */

/* ==========================================================================
   DARK THEME ENHANCEMENTS
   ========================================================================== */

body.dark-theme {
    background-color: #000000;
}

/* Enhanced card styles for dark theme */
.blog-post,
.portfolio-card,
.timeline-content,
.contact-info-block,
.contact-form-block,
.about-preview-section,
.expertise-card,
.service-box,
.value-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

/* Enhanced hover effects */
.blog-post:hover,
.portfolio-card:hover {
    border-color: #ffcd38;
    box-shadow: 0 10px 40px rgba(255, 205, 56, 0.1);
}

/* Dark scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffcd38;
}

/* Selection color */
::selection {
    background: #ffcd38;
    color: #000000;
}

::-moz-selection {
    background: #ffcd38;
    color: #000000;
}

/* Enhanced input focus */
.form-control:focus {
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 205, 56, 0.1);
}

/* Alert styles for dark theme */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5cb85c;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* Enhanced link hover effects */
a:not(.btn):hover {
    text-shadow: 0 0 10px rgba(255, 205, 56, 0.5);
}

/* Code blocks in dark theme */
pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    color: #ffcd38;
}

/* Table styles for dark theme */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #2a2a2a;
    text-align: left;
}

table th {
    background: #1a1a1a;
    font-weight: 600;
    color: #f5f5f5;
}

table tr:nth-child(even) {
    background: #1a1a1a;
}

/* Blockquote styles */
blockquote {
    border-left: 4px solid #ffcd38;
    padding: 20px;
    margin: 20px 0;
    background: #1a1a1a;
    font-style: italic;
}

/* Loading spinner for dark theme */
.spinner {
    border: 4px solid #2a2a2a;
    border-top-color: #ffcd38;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    background: #ffcd38;
    color: #000000;
}

/* Pagination for dark theme */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #d5d5d5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
    background: #ffcd38;
    border-color: #ffcd38;
    color: #000000;
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #d5d5d5;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #ffcd38;
    border-color: #ffcd38;
    color: #000000;
}

/* Enhanced shadow effects */
.shadow-lg {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #ffcd38 0%, #ffd700 100%);
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for all interactive elements */
button,
a,
.form-control,
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid #ffcd38;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .header,
    .mobile-menu-toggle,
    .btn,
    .contact-form-block {
        display: none;
    }

    .site-main {
        margin-left: 0;
        width: 100%;
    }
}


/*
    Add these rules to your 'dark-style.css' or 'style.css'
*/

/* Target the list item when it is active */
.site-main-menu li.active {
    /* Changes the background of the active menu item */
    background-color: #2c2c2c; /* A slightly lighter dark gray */
    border-left: 4px solid #ffcd38; /* Adds a yellow vertical line for emphasis */
}

/* Target the anchor tag inside the active list item */
.site-main-menu li.active a {
    /* Changes the text and icon color to your primary accent color (Yellow) */
    color: #ffcd38 !important;
    font-weight: 600; /* Makes the text bolder */
}

/* Ensure the hover effect doesn't conflict */
.site-main-menu li:hover {
    background-color: #2c2c2c;
}

/* Ensure non-active links are still white/light */
.site-main-menu li a {
    color: #ffffff;
    padding-left: 15px; /* Adjust padding to make room for the border-left */
}
