/**
 * Tool Detail Page Styles
 * Styles for the individual tool detail pages
 */

/* Tool Detail Container */
.tool-detail {
    max-width: 1000px;
    margin: 2rem auto;
}

/* Tool Header */
.tool-header {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}

.back-button:hover {
    color: var(--primary-color);
}

.tool-header-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tool-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background-color: var(--card-bg-alt);
    padding: 1rem;
}

.tool-meta {
    flex-grow: 1;
}

.tool-meta h1 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Tool Actions */
.tool-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-actions .btn-primary,
.tool-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Tool Content Box */
.tool-sections {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Tool Section */
.tool-section {
    margin-bottom: 2rem;
}

.tool-section:last-child {
    margin-bottom: 0;
}

.tool-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

.tool-review {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Pros and Cons */
.tool-pros-cons-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .tool-pros-cons-full {
        grid-template-columns: 1fr;
    }
}

.tool-pros-cons-full ul {
    padding-left: 1.5rem;
}

.tool-pros-cons-full li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.pros h2 {
    color: var(--success) !important;
}

.cons h2 {
    color: var(--error) !important;
}

/* Related Tools */
.related-tools {
    margin-top: 3rem;
}

.related-tools h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Dark Mode Specific Styles */
body.dark-mode .tool-sections {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.dark-mode .tool-section h2 {
    color: var(--text);
}

body.dark-mode .tool-review,
body.dark-mode .tool-pros-cons-full li {
    color: var(--text-secondary);
}

body.dark-mode .tool-logo-large {
    background-color: var(--card-bg-alt);
    border: 1px solid var(--border-color);
}

/* Light Mode Specific Styles */
body.light-mode .tool-sections {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

body.light-mode .tool-section h2 {
    color: var(--text);
}

body.light-mode .tool-review,
body.light-mode .tool-pros-cons-full li {
    color: var(--text-secondary);
}

body.light-mode .tool-logo-large {
    background-color: var(--card-bg-alt);
    border: 1px solid var(--border-color-light);
}

/* Decorative elements */
.tool-sections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tool-logo-large {
        width: 80px;
        height: 80px;
    }
    
    .tool-sections {
        padding: 1.5rem;
    }
}
