/* Component-specific styles for TechDelas */

/* Base Variables (Referencing TechDelas/style.css) */
/* These are here for context but defined in style.css */
/* 
:root {
    --primary-color: #8A2BE2; 
    --secondary-color: #7B1FA2; 
    --accent-color: #bb86fc; 
    --background-color-light: #f0f2f5;
    --background-color-dark: #121212;
    --text-color-light: #333;
    --text-color-dark: #fff;
    --card-background-light: #fff;
    --card-background-dark: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-hover-shadow: rgba(0,0,0,0.2);
    --overlay-color: rgba(130, 80, 160, 0.7);
    --header-bg-light: #fff;
    --header-bg-dark: #1e1e1e;
    --footer-bg-dark: #1a202c; 
}
*/

/* Header */
.site-header {
    background-color: var(--header-bg-light);
    padding: 1rem 1.5rem; /* Adjusted padding for better spacing */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dark-mode .site-header {
    background-color: var(--header-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for dark mode */
}

.site-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header .logo-container img {
    height: 3.5rem; /* Slightly smaller logo for better header balance */
    object-fit: contain;
}

.site-header .site-title {
    font-weight: 700; /* Bold */
    font-size: 1.5rem; /* text-2xl */
    color: var(--primary-color);
    text-shadow: 0 0 4px rgba(138, 43, 226, 0.4); /* Subtle glow */
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* space-x-5 */
}

.site-header .nav-link {
    color: var(--text-color-light);
    font-weight: 600;
    font-size: 0.95rem; /* Slightly smaller nav text */
    transition: color 0.3s ease, transform 0.2s ease;
}
.site-header .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px); /* Subtle lift on hover */
}

.dark-mode .site-header .nav-link {
    color: var(--text-color-dark);
}
.dark-mode .site-header .nav-link:hover {
    color: var(--accent-color);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header .notification-button {
    font-size: 1.3rem; /* text-xl */
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative; /* Needed for count positioning */
}
.site-header .notification-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.site-header .notification-count {
    position: absolute;
    top: -0.3rem;
    right: -0.4rem;
    background-color: #ef4444; /* Red-500 */
    color: white;
    font-size: 0.65rem; /* text-xs */
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    line-height: 1;
    font-weight: bold;
}

.site-header .notification-box {
    position: absolute;
    right: 0;
    top: 100%; /* Position below header */
    margin-top: 0.5rem;
    width: 18rem; /* w-72 */
    max-height: 12rem; /* max-h-60 */
    overflow-y: auto;
    padding: 0.8rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Deeper shadow */
    background-color: var(--card-background-light);
    color: var(--text-color-light);
    z-index: 10;
    border: 1px solid #e5e7eb;
}

.dark-mode .site-header .notification-box {
    background-color: var(--card-background-dark);
    border: 1px solid #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.site-header .accessibility-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Main Content Sections */
main section {
    padding: 4rem 1.5rem; /* py-16 px-6 */
    position: relative;
    overflow: hidden;
}

main section h2 {
    font-size: 2.25rem; /* text-3xl */
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem; /* mb-10 */
    color: var(--primary-color);
    letter-spacing: -0.5px; /* Slight letter spacing adjustment */
}

/* Hero Section */
.hero-section {
    /* Removed background image styles */
    height: 90vh; /* Slightly less than full screen for better header visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    color: white; /* Default text color for hero */
    /* Adding a subtle gradient to compensate for the removed background image */
    background: linear-gradient(rgba(138, 43, 226, 0.6), rgba(123, 31, 162, 0.6));
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay-color);
    z-index: -1;
}

.hero-section .content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-section .content h1 {
    font-size: 2.8rem; /* text-4xl */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1; /* tighter line height */
    letter-spacing: -0.5px;
}

.hero-section .content p {
    font-size: 1.1rem; /* text-lg */
    margin-bottom: 2rem;
    opacity: 0.95; /* Slight transparency */
}

/* Course Section */
.course-section {
    padding: 4rem 1.5rem;
}

.course-section .course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) {
    .course-section .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background-color: var(--card-background-light);
    border-radius: 0.75rem; /* rounded-lg */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

.dark-mode .course-card {
    background-color: var(--card-background-dark);
    border: 1px solid #374151; /* Darker border */
}

.course-card:hover {
    transform: translateY(-8px); /* More pronounced hover effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
}

.course-card img {
    width: 100%;
    height: 180px; /* Adjusted height */
    object-fit: cover;
    display: block;
}

.course-card .card-content {
    padding: 1rem 1rem; /* py-4 px-4 */
    flex-grow: 1; /* Allow content to take available space */
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    font-size: 1.2rem; /* text-lg */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937; /* Darker text for title */
}
.dark-mode .course-card h3 {
    color: #f3f4f6; /* Light text for title */
}

.course-card p {
    font-size: 0.9rem;
    color: #6b7280; /* Gray-500 */
    margin-bottom: 1rem;
    flex-grow: 1; /* Push button to bottom */
}

.dark-mode .course-card p {
    color: #9ca3af; /* Lighter gray for dark mode */
}

.course-card .btn {
    margin-top: auto; /* Push button to the bottom */
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem; /* Reduce bottom margin */
    padding: 0.6rem 1.2rem; /* Smaller button padding */
    font-size: 0.9rem;
}

/* Mentorship Section */
.mentorship-section {
    background-color: #f9fafb; /* Slightly off-white for contrast */
    padding: 4rem 1.5rem;
}
.dark-mode .mentorship-section {
    background-color: #1f2937; /* Dark background */
}

.mentorship-section .mentorship-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mentorship-section .mentorship-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mentorship-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}
.dark-mode .mentorship-section h3 {
    color: #e5e7eb;
}

.mentorship-section p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.dark-mode .mentorship-section p {
    color: #9ca3af;
}

.mentorship-section .mentorship-image img {
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

/* History Section */
.history-section {
    padding: 4rem 1.5rem;
}

/* NEW: Alternative background for history section */
.alt-background {
    background-color: #e9d5ff; /* A light purple background */
    padding: 4rem 1.5rem; /* Ensure padding is consistent */
}

.dark-mode .alt-background {
    background-color: #4c1d95; /* Deep purple */
}

.history-section .history-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .history-section .history-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.history-section .history-image img {
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    width: 100%; /* Ensure image takes full width of its container */
    max-width: 28rem; /* Maintain a maximum width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below the image */
    margin: 0 auto; /* Center the image if it's narrower than its container */
}

.history-section p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.dark-mode .history-section p {
    color: #9ca3af;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-dark);
    /* Adjusted text color for better contrast in dark mode */
    color: #e2e8f0; /* Lighter gray for general text */
    padding: 3rem 1.5rem;
    margin-top: 4rem; /* mt-16 */
}

.site-footer h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.15rem; /* text-lg */
    color: var(--accent-color); /* Accent color for footer headings */
}

.site-footer ul li {
    margin-bottom: 0.4rem;
}

.site-footer ul li a {
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
    color: #9ca3af; /* Lighter gray for links */
}

.site-footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(4px); /* Slight movement on hover */
}

/* Footer text and link colors for dark mode */
.dark-mode .site-footer ul li a {
    color: #9ca3af; /* Keep light gray for links */
}
.dark-mode .site-footer ul li a:hover {
    color: var(--accent-color); /* Accent color on hover */
}

.site-footer .social-icons img {
    width: 1.4rem;
    height: 1.4rem;
    transition: transform 0.2s ease;
}

.site-footer .social-icons a:hover img {
    transform: scale(1.1);
}

.site-footer .copyright {
    text-align: center;
    font-size: 0.8rem; /* Smaller copyright text */
    color: #6b7280; /* Gray for copyright */
    margin-top: 2rem; /* mt-8 */
}

/* Accessibility Styles */
.btn-a-plus, .btn-a-minus {
    background-color: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.3rem 0.6rem; /* Smaller padding */
    font-weight: bold;
    font-size: 0.85rem;
}
.btn-a-plus:hover, .btn-a-minus:hover {
    background-color: #e5e7eb;
}

.dark-mode .btn-a-plus, .dark-mode .btn-a-minus {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
}
.dark-mode .btn-a-plus:hover, .dark-mode .btn-a-minus:hover {
    background-color: #6b7280;
}

.btn-theme-toggle { /* Specific class for theme button */
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.3rem 0.6rem;
    font-weight: bold;
    font-size: 0.85rem;
}
.dark-mode .btn-theme-toggle {
    background-color: #4b5563;
    border-color: #6b7280;
}
.dark-mode .btn-theme-toggle:hover {
    background-color: #6b7280;
}

/* Utility classes for specific effects */
.card-hover-effect:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.reminder-card-hover:hover {
     transform: scale(1.01);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button-click-effect:active {
    transform: scale(0.95);
}

.fade-in-animation {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Background gradient for login page */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-body-bg {
    background: linear-gradient(-45deg, #8A2BE2, #9333ea, #f0f2f5, #ffffff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* NEW: Background color for the history section */
.alt-background {
    background-color: #e9d5ff; /* Light lavender */
    padding: 4rem 1.5rem; /* Ensure padding is consistent */
}

.dark-mode .alt-background {
    background-color: #4c1d95; /* Deep purple */
}
