/* Detail Page Styles */

/* Modern Breadcrumb - Enhanced */
.modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    backdrop-filter: blur(10px);
}

.modern-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.08);
}

.modern-breadcrumb a:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.modern-breadcrumb a i {
    font-size: 14px;
    color: #667eea;
}

.modern-breadcrumb i.fa-chevron-right {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0 4px;
}

.modern-breadcrumb span {
    padding: 8px 16px;
    color: #475569;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tool Stats - Enhanced */
.tool-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode support */
body.dark-mode .modern-breadcrumb {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
    color: #94a3b8;
}

body.dark-mode .modern-breadcrumb a {
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
}

body.dark-mode .modern-breadcrumb a:hover {
    background: rgba(129, 140, 248, 0.2);
    color: #a5b4fc;
}

body.dark-mode .modern-breadcrumb a i {
    color: #818cf8;
}

body.dark-mode .modern-breadcrumb i.fa-chevron-right {
    color: #64748b;
}

body.dark-mode .modern-breadcrumb span {
    color: #cbd5e1;
    background: linear-gradient(135deg, #818cf8, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .stat-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
}

body.dark-mode .stat-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-value {
    background: linear-gradient(135deg, #818cf8, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}

/* Dark Mode - Beautiful Favorite Button */
body.dark-mode .favorite-button {
    background: rgba(30, 41, 59, 0.9);
    border-color: #475569;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .favorite-button::before {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
}

body.dark-mode .favorite-button:hover {
    border-color: #ff6b9d;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.3);
    background: rgba(30, 41, 59, 0.95);
}

body.dark-mode .favorite-button svg {
    color: #e2e8f0;
}

body.dark-mode .favorite-button:hover svg {
    color: #ff6b9d;
}

body.dark-mode .favorite-button.active {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-color: #ff6b9d;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

body.dark-mode .favorite-button.active:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

/* Tool Header */
.tool-header {
    position: relative;
}

.tool-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.tool-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Dark mode for tool elements */
body.dark-mode .tool-title {
    color: #f8fafc;
}

body.dark-mode .tool-description {
    color: #94a3b8;
}

/* AI Detail Box */
.ai-detail-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

body.dark-mode .ai-detail-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Main Image */
.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Content Box */
.content-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

body.dark-mode .content-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.content-section {
    color: #475569;
    line-height: 1.7;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Dark mode for content */
body.dark-mode .content-section {
    color: #cbd5e1;
}

body.dark-mode .content-section h2,
body.dark-mode .content-section h3 {
    color: #f8fafc;
}

/* Blog Posts Sidebar */
.blog-posts-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

body.dark-mode .blog-posts-sidebar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blog-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.blog-sidebar-title i {
    color: #667eea;
}

.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-post-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

body.dark-mode .blog-post-item {
    border-color: #334155;
}

body.dark-mode .blog-post-item:hover {
    background: #334155;
}

.blog-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-post-content {
    flex: 1;
}

.blog-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.blog-post-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.blog-post-excerpt {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Dark mode for blog posts */
body.dark-mode .blog-sidebar-title {
    color: #f8fafc;
}

body.dark-mode .blog-post-title {
    color: #f8fafc;
}

body.dark-mode .blog-post-date,
body.dark-mode .blog-post-excerpt {
    color: #94a3b8;
}

.blog-view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.blog-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.blog-no-articles {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem;
}

body.dark-mode .blog-no-articles {
    color: #94a3b8;
}

/* Alternatives Container */
.alternatives-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

body.dark-mode .alternatives-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.alternatives-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

body.dark-mode .alternatives-title {
    color: #f8fafc;
}

/* Alternative Card */
.alternative-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
}

body.dark-mode .alternative-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.alternative-card:hover {
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 500;
}

body.dark-mode .status-badge {
    background-color: #334155;
    color: #cbd5e1;
}

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

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.votes {
    font-size: 0.75rem;
    color: #64748b;
}

body.dark-mode .votes {
    color: #94a3b8;
}

.tool-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tool-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

body.dark-mode .tool-name {
    color: #f8fafc;
}

body.dark-mode .tool-desc {
    color: #94a3b8;
}

.visit-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.visit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.no-alternatives {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem;
}

body.dark-mode .no-alternatives {
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-breadcrumb {
        padding: 12px 16px;
        gap: 8px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .modern-breadcrumb a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .modern-breadcrumb span {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tool-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .tool-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .favorite-button {
        top: 1rem;
        right: 1rem;
        width: 46px;
        height: 46px;
    }
    
    .favorite-button svg {
        width: 22px;
        height: 22px;
    }
    
    .vote-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .vote-btn {
        min-width: auto;
        padding: 12px 20px;
    }
    
    .vote-message {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
    
    .blog-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-post-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .modern-breadcrumb {
        padding: 8px 12px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .tool-title {
        font-size: 1.25rem;
    }
    
    .favorite-button {
        width: 42px;
        height: 42px;
    }
    
    .favorite-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Favorite Button - Beautiful & User-Friendly */
.favorite-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.favorite-button:hover {
    transform: scale(1.05);
    border-color: #ff6b9d;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.2);
}

.favorite-button:hover::before {
    width: 100px;
    height: 100px;
}

.favorite-button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.favorite-button svg {
    width: 24px;
    height: 24px;
    color: #ff4b91;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.favorite-button:hover svg {
    color: #ff6b9d;
    transform: scale(1.1);
}

.favorite-button.active {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-color: #ff6b9d;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
    animation: favoritePulse 2s ease-in-out infinite;
}

.favorite-button.active svg {
    color: #ffffff;
    fill: currentColor;
    stroke: none;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.favorite-button.active:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

/* Beautiful pulse animation */
@keyframes favoritePulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6), 0 0 0 10px rgba(255, 107, 157, 0.1);
    }
}

/* Heartbeat animation */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* Success animation on click */
.favorite-button.clicked {
    animation: favoriteSuccess 0.6s ease-out;
}

@keyframes favoriteSuccess {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotate(5deg);
    }
    50% {
        transform: scale(1.1) rotate(-3deg);
    }
    75% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Vote Buttons - Enhanced */
.vote-buttons {
    display: flex;
    gap: 16px;
    margin: 2rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    justify-content: center;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.vote-btn:hover::before {
    left: 100%;
}

.like-btn {
    border-color: #10b981;
    color: #10b981;
}

.like-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.like-btn:active {
    transform: translateY(0);
}

.dislike-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.dislike-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.dislike-btn:active {
    transform: translateY(0);
}

.vote-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.vote-btn:hover i {
    transform: scale(1.1);
}

.vote-count {
    font-weight: 700;
    font-size: 16px;
}

.vote-message {
    margin-left: 16px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.vote-message.show {
    opacity: 1;
    transform: translateX(0);
}

/* Dark mode for vote buttons */
body.dark-mode .vote-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
}

body.dark-mode .like-btn {
    color: #34d399;
    border-color: #34d399;
}

body.dark-mode .like-btn:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
}

body.dark-mode .dislike-btn {
    color: #f87171;
    border-color: #f87171;
}

body.dark-mode .dislike-btn:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

body.dark-mode .vote-message {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.action-button:hover {
    opacity: 0.9;
}

.primary-button {
    background-color: #ff4b91;
    color: white;
}

.secondary-button {
    background-color: #4a5568;
    color: white;
}

.tool-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
}

.alternative-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.alternative-card:hover {
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 500;
}

.tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tool-desc {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

.visit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background-color: #ff4b91;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.visit-button:hover {
    opacity: 0.9;
}

.ad-container {
    width: 100%;
    min-height: 100px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.ad-placeholder {
    width: 100%;
    min-height: 100px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    .ad-placeholder {
        min-height: 250px;
    }
}

.content-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.content-section {
    padding: 2rem;
}

.tool-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

.tool-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem;
    scroll-margin-top: 2rem;
}

.tool-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
    scroll-margin-top: 2rem;
}

.tool-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.25rem 0 1rem;
    scroll-margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #4a5568;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff4b91;
    font-weight: bold;
}

.pricing-info, .reviews-container {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

/* Redirect Modal Styles */
.redirect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.redirect-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.redirect-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.redirect-modal-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.redirect-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.redirect-modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redirect-continue {
    background-color: #ff4b91;
    color: white;
    border: none;
}

.redirect-cancel {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
}

.redirect-modal-button:hover {
    transform: translateY(-2px);
}

/* Blog Sidebar Styles - Dark/Light Mode Compatible */
.blog-posts-sidebar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .blog-posts-sidebar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.2);
}

.blog-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .blog-sidebar-title {
    color: var(--text-primary, #f1f5f9);
}

.blog-sidebar-title i {
    color: #667eea;
}

.blog-posts-list {
    margin-bottom: 16px;
}

.blog-post-item {
    display: block;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--card-bg, white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

body.dark-mode .blog-post-item {
    background: var(--card-bg, #1e293b);
    border-color: rgba(102, 126, 234, 0.2);
}

.blog-post-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

body.dark-mode .blog-post-item:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.blog-post-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f1f5f9;
}

.dark-mode .blog-post-image {
    background: #334155;
}

.blog-post-content {
    flex: 1;
}

.blog-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 4px;
    line-height: 1.4;
}

body.dark-mode .blog-post-title {
    color: var(--text-primary, #f1f5f9);
}

.blog-post-date {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

.blog-post-excerpt {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin: 6px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .blog-post-date,
body.dark-mode .blog-post-excerpt {
    color: var(--text-secondary, #94a3b8);
}

body.dark-mode .blog-post-date {
    color: var(--text-secondary, #94a3b8);
}

.blog-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.blog-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    color: white;
}

.blog-no-articles {
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 16px;
    text-align: center;
}

body.dark-mode .blog-no-articles {
    color: var(--text-secondary, #94a3b8);
}

/* Vote Buttons Styles */
.vote-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn {
    border-color: #10b981;
    color: #10b981;
}

.dislike-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.vote-btn:hover {
    transform: scale(1.05);
}

.like-btn:hover {
    background: #10b981;
    color: white;
}

.dislike-btn:hover {
    background: #ef4444;
    color: white;
}

.vote-count {
    font-size: 18px;
}

.vote-message {
    margin-left: 12px;
    font-size: 14px;
    color: #64748b;
}

/* Dark Mode Styles */
body.dark-mode .alternative-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .card-header {
    border-bottom-color: #334155;
}

body.dark-mode .status-badge {
    background-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .tool-name {
    color: #f8fafc;
}

body.dark-mode .tool-desc {
    color: #94a3b8;
}

body.dark-mode .visit-button {
    background-color: #818cf8;
}

body.dark-mode .ad-container {
    background: #0f172a;
}

body.dark-mode .ad-placeholder {
    background: #334155;
    color: #94a3b8;
}

body.dark-mode .content-box {
    background: #1e293b;
}

body.dark-mode .tool-content {
    color: #cbd5e1;
}

body.dark-mode .tool-content h2,
body.dark-mode .tool-content h3,
body.dark-mode .tool-content h4 {
    color: #f8fafc;
}

body.dark-mode .feature-list li {
    color: #cbd5e1;
}

body.dark-mode .pricing-info,
body.dark-mode .reviews-container {
    color: #cbd5e1;
}

body.dark-mode .redirect-modal-content {
    background-color: #1e293b;
}

body.dark-mode .redirect-modal-title {
    color: #f8fafc;
}

body.dark-mode .redirect-modal-text {
    color: #cbd5e1;
}

body.dark-mode .redirect-cancel {
    background-color: #334155;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.25rem;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }

    .tool-content, .feature-list li, .pricing-info, .reviews-container {
        font-size: 1rem;
    }
    
    .blog-posts-sidebar {
        padding: 16px;
    }

    .blog-sidebar-title {
        font-size: 18px;
    }

    .blog-post-title {
        font-size: 13px;
    }

    .blog-post-date {
        font-size: 11px;
    }
    
    .vote-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vote-btn {
        justify-content: center;
    }
}