/* tools-common.css - COMPLETE VERSION (Layout Compliant) */
/* This file ONLY contains styles for tool cards and modals, 
   relying on layout-styles.css for ALL layout including background.
   The tools-container now has NO background - it inherits from body/layout. */

/* ===== Tools Container - NO BACKGROUND, inherits from layout ===== */
.tools-container {
    /* NO background here - inherits from body/layout (which is #0f172a) */
    color: #f1f5f9;
    min-height: calc(100vh - 80px); /* Adjust for header height */
    padding: 60px 40px;
    width: 100%;
    margin: 0;
    position: relative;
    border-radius: 0;
}

/* Tools Content Wrapper */
.tools-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Tools Header ===== */
.tools-header {
    margin-bottom: 50px;
}

    .tools-header h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #E1306C, #833AB4, #405DE6);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.tools-subtitle {
    font-size: 1.2rem;
    color: #8899A6;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.tools-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #E1306C, #833AB4, #405DE6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

/* ===== Tools Grid ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* ===== Tool Card ===== */
.tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

    .tool-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #E1306C, #833AB4, #405DE6);
    }

    .tool-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        border-color: rgba(225, 48, 108, 0.3);
    }

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* AI Badge - positioned relative to card */
.ai-badge-premium {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #E1306C, #833AB4);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

/* Tool Icon */
.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

/* Card Title */
.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
    text-align: center;
}

/* Card Description */
.card-description {
    margin-bottom: 20px;
}

.tool-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Features List */
.features-list {
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: left;
}

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .feature-item i {
        margin-right: 10px;
        font-size: 0.8rem;
        width: 20px;
        text-align: center;
        color: #E1306C;
    }

/* Action Buttons */
.tool-btn {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(225, 48, 108, 0.15);
    border: 1px solid rgba(225, 48, 108, 0.4);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fca5a5;
    margin-top: auto;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

    .tool-btn:hover {
        background: rgba(225, 48, 108, 0.25);
        color: white;
        transform: translateY(-2px);
    }

    .tool-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

.btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

    .btn-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

.btn-add-to-cart {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-add-to-cart:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.btn-details {
    width: 100%;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-top: 10px;
}

    .btn-details:hover {
        background: rgba(139, 92, 246, 0.25);
        transform: translateY(-2px);
    }

/* ===== Detail Modal Styles ===== */
.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
}

    .detail-section h4 {
        color: #E1306C;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

.detail-feature {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .detail-feature i {
        width: 30px;
        color: #10B981;
        font-size: 1rem;
    }

    .detail-feature strong {
        width: 120px;
        color: #f1f5f9;
        font-size: 0.9rem;
    }

    .detail-feature span {
        color: #cbd5e1;
        font-size: 0.9rem;
    }

.price-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

    .price-box .points {
        font-size: 1.2rem;
        color: #fbbf24;
        font-weight: bold;
    }

    .price-box .price {
        font-size: 1rem;
        color: #10b981;
    }

.monthly-price {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #94a3b8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.feature-tag {
    background: rgba(225, 48, 108, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
}

    .feature-tag i {
        color: #E1306C;
        font-size: 0.8rem;
    }

/* ===== Particles Animation (Optional - can be removed if not needed) ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== Card Animation Delays ===== */
.tool-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

    .tool-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .tool-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .tool-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .tool-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .tool-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .tool-card:nth-child(6) {
        animation-delay: 0.3s;
    }

    .tool-card:nth-child(7) {
        animation-delay: 0.35s;
    }

    .tool-card:nth-child(8) {
        animation-delay: 0.4s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .tools-container {
        padding: 40px 20px;
        min-height: calc(100vh - 60px);
    }

    .tools-header h1 {
        font-size: 2rem;
    }

    .tools-subtitle {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 25px 20px;
        min-height: auto;
    }

    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RTL Support ===== */
.en-text {
    display: inline;
}

.ar-text {
    display: none;
}

html[dir="rtl"] .en-text {
    display: none;
}

html[dir="rtl"] .ar-text {
    display: inline;
}

html[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

    html[dir="rtl"] .feature-item i {
        margin-right: 0;
        margin-left: 10px;
    }

html[dir="rtl"] .detail-feature {
    flex-direction: row-reverse;
    text-align: right;
}

    html[dir="rtl"] .detail-feature i {
        margin-left: 10px;
        margin-right: 0;
    }

/* AI Badge stays on right even in RTL */
html[dir="rtl"] .ai-badge-premium {
    right: 15px;
    left: auto;
}
