/* AI Tools Styles - Redesigned to match Career Paths */

/* Global Styles */
body.ai-tools-page,
body.single-ai-tool {
    direction: rtl;
    text-align: right;
    background: #f6f7fa;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ai-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f6f7fa;
}

/* Hero Section - Matching Career Hero */
.ai-tools-hero {
    background: linear-gradient(135deg, #242c44 0%, #ab2727 100%);
    padding: 140px 0 180px;
    position: relative;
    overflow: hidden;
    margin: -40px -20px 60px -20px;
    text-align: center;
}

.ai-tools-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.ai-tools-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.ai-tools-hero-content {
    position: relative;
    z-index: 2;
}

.ai-tools-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.ai-tools-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.ai-tools-hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Bar - Matching Career Filter */
.ai-tools-filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1.2rem 0 1.5rem 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ai-tools-filter-bar select {
    border-radius: 8px;
    padding: .5em 1em;
    border: 1.5px solid #242c44;
    font-size: 1rem;
    background: #fff;
    color: #242c44;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(36,44,68,0.07);
    transition: border .2s;
    min-width: 120px;
}

.ai-tools-filter-bar select:focus {
    border-color: #ab2727;
    outline: none;
}

/* Category Pills - Matching Career Pills */
.ai-tools-category-slider-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100vw;
}

.ai-tools-category-pills {
    display: flex;
    gap: .7rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0.5rem 0.2rem 0.5rem 0.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    border-radius: 999px;
    background: #f6f7fa;
    box-shadow: 0 2px 16px rgba(36,44,68,0.07);
}

.ai-tools-category-pills::-webkit-scrollbar { display: none; }

.ai-tools-category-pills .pill {
    flex: 0 0 auto;
    max-width: 150px;
    min-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: .5em 1.3em;
    font-size: 1.08rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff 60%, #f6f7fa 100%);
    color: #242c44;
    border: 2px solid #e3e6ef;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(36,44,68,0.04);
    transition: background .18s, color .18s, border .18s, box-shadow .18s;
    cursor: pointer;
    margin: 0;
    position: relative;
    text-decoration: none;
}

.ai-tools-category-pills .pill.active,
.ai-tools-category-pills .pill:hover {
    background: linear-gradient(90deg, #ab2727 60%, #242c44 100%);
    color: #fff;
    border-color: #ab2727;
    box-shadow: 0 4px 16px rgba(171,39,39,0.10);
}

/* Search Bar */
.ai-tools-search {
    margin-bottom: 2rem;
    text-align: center;
}

.ai-tools-search input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #e3e6ef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(36,44,68,0.04);
}

.ai-tools-search input:focus {
    border-color: #ab2727;
    box-shadow: 0 4px 16px rgba(171,39,39,0.10);
}

/* AI Tools Grid - Matching Career Cards */
.ai-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

@media (min-width: 700px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ai-tool-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(36,44,68,0.10);
    padding: 1.2rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border: none;
    position: relative;
    overflow: hidden;
    transition: box-shadow .18s, transform .12s;
    animation: fadeInUp .5s cubic-bezier(.23,1.01,.32,1) both;
    cursor: pointer;
    min-height: 180px;
    text-decoration: none;
}

.ai-tool-card:hover {
    box-shadow: 0 6px 24px rgba(171,39,39,0.13);
    transform: translateY(-3px) scale(1.01);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: none;}
}

.ai-tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.7rem;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #fff 60%, #f6f7fa 100%);
    border: 2px solid #ab2727;
    box-shadow: 0 1px 4px rgba(36,44,68,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ab2727;
}

.ai-tool-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #242c44;
    margin-bottom: .4rem;
    text-align: right;
    letter-spacing: -.3px;
}

.ai-tool-excerpt {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 0.7rem;
    text-align: right;
    min-height: 32px;
    line-height: 1.6;
}

.ai-tool-stats {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.ai-tool-stat {
    font-size: 0.93rem;
    color: #ab2727;
    font-weight: 700;
    background: #f6f7fa;
    border-radius: 8px;
    padding: .2em .7em;
    margin: 0 .1em;
    box-shadow: 0 1px 4px rgba(36,44,68,0.04);
    display: flex;
    align-items: center;
}

.ai-tool-stat:not(:last-child):after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #e0e0e0;
    margin: 0 0.5em;
    border-radius: 1px;
}

.ai-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    justify-content: flex-end;
    margin-top: .2rem;
}

.ai-tool-btn {
    background: linear-gradient(90deg, #242c44 60%, #ab2727 100%);
    color: #fff;
    border-radius: 999px;
    padding: .25em 0.8em;
    font-size: 0.93rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(36,44,68,0.07);
    transition: background .2s, color .2s, box-shadow .2s;
    border: none;
    outline: none;
    letter-spacing: -.2px;
    margin-bottom: 2px;
}

.ai-tool-btn:hover {
    background: linear-gradient(90deg, #ab2727 60%, #242c44 100%);
    color: #fff !important;
}

.ai-tool-btn-secondary {
    background: linear-gradient(90deg, #f6f7fa 60%, #e3e6ef 100%);
    color: #242c44;
    border: 1px solid #e3e6ef;
}

.ai-tool-btn-secondary:hover {
    background: linear-gradient(90deg, #ab2727 60%, #242c44 100%);
    color: #fff !important;
}

.ai-tool-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(171,39,39,0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Single AI Tool Page Styles */
.ai-tool-hero {
    background: linear-gradient(135deg, #242c44 0%, #ab2727 100%);
    padding: 140px 0 180px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.ai-tool-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ai-tool-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-tool-hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.ai-tool-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.ai-tool-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.ai-tool-hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.ai-tool-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ai-tool-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.ai-tool-hero-meta-item i {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
}

.ai-tool-hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-tool-hero-btn {
    padding: 15px 40px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.ai-tool-hero-btn-primary {
    background: #fff;
    color: #ab2727;
    border: 2px solid #fff;
}

.ai-tool-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #ab2727;
}

.ai-tool-hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.ai-tool-hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

.ai-tool-hero-image {
    text-align: center;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.ai-tool-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Main Content */
.ai-tool-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.ai-tool-main-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.ai-tool-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

/* Content Sections */
.ai-tool-section {
    margin-bottom: 40px;
}

.ai-tool-section h2 {
    color: #242c44;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.ai-tool-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ab2727 0%, #242c44 100%);
    border-radius: 2px;
}

.ai-tool-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-tool-features-list li {
    padding: 15px 0;
    color: #34495e;
    font-size: 1rem;
    position: relative;
    padding-right: 30px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
}

.ai-tool-features-list li:last-child {
    border-bottom: none;
}

.ai-tool-features-list li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
    background: #f8f9fa;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(36,44,68,0.1);
}

/* Purchase Card */
.ai-tool-purchase-card {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #e3e6ef;
}

.ai-tool-purchase-card h3 {
    color: #242c44;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.ai-tool-purchase-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ab2727;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ai-tool-purchase-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ab2727 0%, #242c44 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(171,39,39,0.3);
}

.ai-tool-purchase-btn:hover {
    background: linear-gradient(135deg, #242c44 0%, #ab2727 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(171,39,39,0.4);
    color: white;
}

.ai-tool-purchase-btn-secondary {
    background: linear-gradient(135deg, #f6f7fa 0%, #e3e6ef 100%);
    color: #242c44;
    border: 2px solid #e3e6ef;
}

.ai-tool-purchase-btn-secondary:hover {
    background: linear-gradient(135deg, #ab2727 0%, #242c44 100%);
    color: white;
    border-color: #ab2727;
}

/* Tool Info */
.ai-tool-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #e3e6ef;
}

.ai-tool-info h3 {
    color: #242c44;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.ai-tool-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-tool-info li {
    padding: 10px 0;
    color: #34495e;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-tool-info li:last-child {
    border-bottom: none;
}

.ai-tool-info li strong {
    color: #242c44;
    font-weight: 700;
}

/* Share Section */
.ai-tool-share {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e3e6ef;
}

.ai-tool-share h3 {
    color: #242c44;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Related Tools */
.related-ai-tools {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ecf0f1;
}

.related-ai-tools h2 {
    margin-bottom: 30px;
}

.related-ai-tools .ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .ai-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .ai-tool-card {
        padding: 0.9rem 0.6rem 0.7rem 0.6rem;
        min-width: 0;
        max-width: 100%;
    }
    .ai-tools-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .ai-tools-category-pills .pill {
        font-size: 0.95rem;
        padding: .3em .8em;
        max-width: 110px;
    }
    .ai-tools-hero-title,
    .ai-tool-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ai-tool-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ai-tool-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-tool-hero-cta {
        flex-direction: column;
    }
    
    .ai-tool-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .ai-tools-grid,
    .ai-tools-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
    }
    .ai-tool-card {
        margin: 0 auto !important;
        text-align: right !important;
        align-items: flex-end !important;
        width: 98% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ai-tools-category-pills {
        gap: .2rem;
        padding-bottom: 2px;
    }
    .ai-tools-category-pills .pill {
        font-size: 0.85rem;
        padding: .2em .6em;
        max-width: 90px;
    }
    .ai-tool-icon {
        width: 40px;
        height: 40px;
    }
    .ai-tools-hero-title,
    .ai-tool-hero-title {
        font-size: 2rem;
    }
    
    .ai-tool-hero-desc {
        font-size: 1.1rem;
    }
    
    .ai-tool-hero-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Empty State */
.ai-tools-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(36,44,68,0.10);
}

.ai-tools-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #242c44;
}

.ai-tools-empty p {
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
} 

/* Persian Number Support */
.ai-tool-stat,
.ai-tool-price,
.price,
.ai-tools-hero-meta-item {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: ltr;
    text-align: right;
}

/* Price formatting */
.price {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    color: #ab2727;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    direction: ltr;
    text-align: center;
}

.ai-tool-stat {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: ltr;
    text-align: right;
}

/* Currency symbol styling */
.price::after {
    content: '';
    margin-right: 5px;
}

/* Rial currency indicator */
.price[data-currency="rial"]::after {
    content: ' ریال';
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
}

/* Price input styling in admin */
#ai_tool_price,
#ai_tool_course_price {
    direction: ltr;
    text-align: right;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Price display in cards */
.ai-tool-stat .fas {
    margin-left: 5px;
    margin-right: 0;
}

/* Responsive price display */
@media (max-width: 600px) {
    .price {
        font-size: 1.8rem;
    }
    
    .ai-tool-stat {
        font-size: 0.85rem;
    }
} 