/* Basic Styles */
:root {
    /* Define base colors potentially needed */
    --timeline-marker-border-light: #fff;
    --timeline-marker-border-dark: #212529; /* Example using Bootstrap's dark bg */
    --footer-bg-light: #f8f9fa;
    --footer-bg-dark: #343a40;
    
    /* New elegant color scheme */
    --elegant-gradient-start: #667eea;
    --elegant-gradient-end: #764ba2;
    --elegant-accent: #667eea;
    --elegant-hover: rgba(102, 126, 234, 0.05);
}

body {
    /* Use Apple System Font Stack */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bs-body-bg);
}

body[data-bs-theme="dark"] {
    background-color: #000; /* Force black background for closer match */
    color: #ccc; /* Lighter grey text */
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500; /* Slightly bolder headings */
}

.lead {
    font-size: 1.1rem;
    color: var(--bs-secondary); /* Use secondary color for lead */
}


/* App Text Block Styles */
.app-text-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.15s ease-in-out;
}

.app-text-link:hover {
    opacity: 0.7;
}

.app-text-item {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

.app-text-title {
    font-size: 1.5rem; /* Adjust size as needed */
    margin-bottom: 0.25rem;
}

.app-text-description {
    font-size: 1rem;
}

/* Minimal Header Styles */
.site-header-minimal {
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.site-title {
    font-weight: 500;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .site-title {
    color: var(--bs-body-color);
}

/* Logo Styles */
.site-logo-link {
    display: inline-block; /* Prevents extra space */
}

.site-logo {
    height: 80px; /* Increased height again */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align nicely with toggle */
    border-radius: 18px; /* iOS-like rounded corners */
}

/* Footer Styles (ensure consistency) */
.site-footer {
    border-top: 1px solid var(--bs-border-color-translucent);
    padding: 2rem 0; /* Adjust padding */
    background-color: transparent; /* Remove default light bg */
}

[data-bs-theme="dark"] .site-footer {
    border-top-color: var(--bs-border-color-translucent);
    background-color: transparent; /* Ensure dark footer is also transparent */
}


/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 50px; /* Space for the line and markers */
  /* Adjust border color for light/dark modes if implemented */
  border-left: 2px solid var(--bs-border-color, #dee2e6);
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px; /* Reduced left padding for mobile */
    padding-right: 15px; /* Added right padding for mobile */
  }
}

.timeline-item {
  position: relative;
}

/* Ensure the marker aligns with the card header better */
.timeline-marker {
  position: absolute;
  left: -9px; /* Center the marker on the line (adjust for border width) */
  top: 1rem; /* Align roughly with the center of the card header padding */
  width: 16px;
  height: 16px;
  /* Use Bootstrap primary color or theme color */
  background-color: var(--bs-primary);
  border-radius: 50%;
  /* Add a border that adapts to background (light/dark mode) */
  border: 3px solid var(--timeline-marker-border-light);
}

@media (max-width: 768px) {
  .timeline-marker {
    left: -8px; /* Slightly adjust marker position for mobile */
    width: 14px; /* Slightly smaller marker for mobile */
    height: 14px;
  }
}

.timeline-content {
  position: relative;
  left: 20px; /* Space between marker and content card */
}

@media (max-width: 768px) {
  .timeline-content {
    left: 10px; /* Reduced space between marker and content for mobile */
  }
}

.timeline-item:last-child {
    margin-bottom: 0 !important; /* Remove extra margin at the bottom */
}

/* Style for version badges */
.timeline-content .badge {
    font-weight: 500; /* Make badges slightly bolder */
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] body {
    /* Ensure body background uses Bootstrap's dark theme variable */
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .site-footer a {
    color: var(--bs-secondary-color) !important; /* Adjust link color in footer */
}

[data-bs-theme="dark"] .site-footer a:hover {
    color: var(--bs-light) !important;
}

[data-bs-theme="dark"] .timeline {
    border-left-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .timeline-marker {
    border-color: var(--timeline-marker-border-dark);
}

/* Remove or comment out old dark card styles */
/*
[data-bs-theme="dark"] .card { ... }
[data-bs-theme="dark"] .card:hover { ... }
*/

/* Adjust text colors if needed */
[data-bs-theme="dark"] .text-muted {
    color: var(--bs-secondary-color) !important;
}

/* Adjust form controls for dark theme */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    background-color: var(--bs-tertiary-bg); /* Maintain background on focus */
    color: var(--bs-body-color);
}

/* Light/Dark Toggle Styles */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure cards in dark mode use correct bg/color */
[data-bs-theme="dark"] .app-card {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color-translucent); /* Maintain subtle border */
    box-shadow: none; /* Remove default dark shadow too */
}

[data-bs-theme="dark"] .card-link:hover .app-card {
    /* box-shadow: 0 4px 8px rgba(255,255,255,0.06); */ /* Subtle dark shadow on hover */
    border-color: var(--bs-secondary-color); /* Highlight border on hover */
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter header */
    border-bottom-color: var(--bs-border-color-translucent);
}

/* App List Styles - Updated for elegance */
.app-list {
    background: var(--bs-body-bg);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-list-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.app-list-item {
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.app-list-link:hover .app-list-item {
    background: var(--elegant-hover);
    border-color: var(--bs-border-color);
    transform: translateY(-2px);
}

.app-list-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--elegant-accent);
}

.app-list-description {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

.app-card {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

.card-link:hover .app-card {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

.app-card .card-title {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

[data-bs-theme="dark"] .app-card {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

[data-bs-theme="dark"] .card-link:hover .app-card {
    /* No explicit styling needed beyond margin, but class is useful for structure */
}

/* Highlight Section - Updated for elegance */
.highlight-section {
    padding: 3rem 2rem;
    border-radius: var(--bs-border-radius-lg);
    background: linear-gradient(135deg, var(--elegant-gradient-start), var(--elegant-gradient-end));
    margin-bottom: 3rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.highlight-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.highlight-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .app-list {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .app-list-link:hover .app-list-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .highlight-section {
    background: linear-gradient(135deg, 
        var(--elegant-gradient-end),
        var(--elegant-gradient-start)
    );
}

/* Screenshot Display Area */
.screenshot-display {
    background-color: var(--bs-tertiary-bg);
    padding: 1rem;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-border-color);
    width: 100%;
    overflow: hidden; /* Ensure no horizontal scrollbar on the container */
}

.screenshot-scroll-container {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0.5rem 0;
    margin: 0 -1rem; /* Compensate for parent padding */
    padding: 0 1rem; /* Add padding back */
}

.screenshot-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.screenshot-scroll-content {
    display: flex;
    gap: 1rem;
    width: max-content; /* Force content to stay in one line */
    min-width: 100%;
}

.screenshot-item {
    flex: 0 0 85vw; /* Use viewport width instead of percentage */
    max-width: 85vw;
    width: 85vw;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .screenshot-scroll-container {
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }
    
    .screenshot-scroll-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        width: 100%;
    }
    
    .screenshot-item {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

[data-bs-theme="dark"] .screenshot-display {
     background-color: var(--bs-secondary-bg);
     border-color: var(--bs-border-color-translucent);
}

/* Add styles for positioning the actual screenshot inside the frame later */
/* .device-mockup .screenshot {
    position: absolute;
    top: Xpx; 
    left: Ypx;
    width: Z%;
    height: A%;
} */

/* App Detail Page Styles */
.hero-section {
    padding: 3rem 2rem;
    border-radius: var(--bs-border-radius-lg);
    background: linear-gradient(135deg, var(--elegant-gradient-start), var(--elegant-gradient-end));
    margin-bottom: 3rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.app-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-section .btn-dark {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 1rem 2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-section .btn-dark:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.feature-item {
    padding: 2rem;
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--elegant-accent);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--elegant-accent);
}

/* Dark mode adjustments for app detail page */
[data-bs-theme="dark"] .feature-item {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] .feature-item:hover {
    background: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, 
        var(--elegant-gradient-end),
        var(--elegant-gradient-start)
    );
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.navbar-toggler:hover {
    background-color: var(--elegant-hover);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--bs-body-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--bs-body-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.navbar-nav {
    padding: 0.5rem 0;
}

.nav-link {
    color: var(--bs-body-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--elegant-hover);
    color: var(--elegant-accent);
}

[data-bs-theme="dark"] .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
} 