/* Import main theme variables */
@import url('../styles.css');

/* Tool Header */
.tool-header {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tool-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.tool-header p {
    font-size: 1.25rem;
    color: var(--text-color-secondary);
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.primary-button:hover {
    background-color: #357abd;
    color: var(--white);
    transform: translateY(-1px);
}

.primary-button.disabled,
.primary-button.disabled:hover {
    background-color: var(--light-gray);
    color: var(--text-color-secondary);
    cursor: not-allowed;
    transform: none;
}

.primary-button i {
    font-size: 1.1em;
}

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header & Navigation */
header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.home-link {
    color: var(--text-color-secondary);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.home-link:hover {
    color: var(--text-color);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: var(--background-color);
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.theme-option {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
}

.theme-option:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.theme-option:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Active theme styles */
.theme-option[aria-pressed="true"] {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.theme-option[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    width: 240px;
    height: calc(100vh - 72px);
    background-color: var(--card-background);
    border-right: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.sidebar a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Main Content */
main {
    margin-left: 240px;
    padding: 6rem 2rem 4rem;
    flex: 1;
    max-width: 900px;
    align-self: flex-start;
}

/* Guide Sections */
.guide-section {
    margin-bottom: 3rem;
}

.guide-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.guide-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 12px;
    color: var(--white);
}

.guide-icon i {
    font-size: 24px;
}

.guide-content {
    flex: 1;
}

.guide-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.guide-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    margin: 1rem 0;
    color: var(--text-color);
    font-weight: 500;
}

.guide-content ul, .guide-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color-secondary);
}

/* Policy Container */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
}

.policy-container h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.last-updated {
    color: var(--text-color-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

.policy-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-color-secondary);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    main {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    main {
        margin-left: 0;
        padding: 6rem 1rem 2rem;
    }
    
    .guide-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .guide-icon {
        width: 40px;
        height: 40px;
    }
    
    .guide-icon i {
        font-size: 20px;
    }
    
    .policy-container h2 {
        font-size: 2rem;
    }
}

/* Status Colors */
.good { color: #0f8a3c; }
.medium { color: #f29900; }
.poor { color: #cf222e; }

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #357abd;
}

/* Code Blocks */
pre, code {
    background-color: var(--light-gray);
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Example Questions */
.example-questions {
    list-style: none;
    padding: 0;
}

.example-questions li {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    color: var(--text-color);
    font-style: italic;
}

/* Permissions List */
.permissions-list li {
    margin-bottom: 1rem;
}

.permissions-list strong {
    color: var(--text-color);
    font-weight: 600;
}

.permission-reason {
    margin-top: 0.25rem;
    font-size: 0.9em;
    color: var(--text-color-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Dark theme adjustments */
[data-theme="dark"] .carousel-button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

[data-theme="dark"] .carousel-button:hover {
    background-color: var(--primary-color);
}

[data-theme="dark"] .dot {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dot.active {
    background-color: var(--primary-color);
}

/* Video Section Styles */
.video-section {
    text-align: center;
    margin: 2rem 0;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-link i {
    font-size: 1.25rem;
}

/* Dark theme adjustments */
[data-theme="dark"] .video-link {
    background-color: var(--primary-color);
}

[data-theme="dark"] .video-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
} 