/* ==========================================================================
   Dhilaalo Pro — Platforms
   ========================================================================== */


/* --------------------------------------------------------------------------
   Platform Grid
   -------------------------------------------------------------------------- */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}


/* --------------------------------------------------------------------------
   AI Platform
   -------------------------------------------------------------------------- */

.card-ai {
    --platform-accent: #7c3aed;
}

.card-ai .platform-icon {
    color: var(--platform-accent);
}

.card-ai:hover {
    border-color: rgba(124, 58, 237, 0.25);
}


/* --------------------------------------------------------------------------
   Tools Platform
   -------------------------------------------------------------------------- */

.card-tools {
    --platform-accent: #0891b2;
}

.card-tools .platform-icon {
    color: var(--platform-accent);
}

.card-tools:hover {
    border-color: rgba(8, 145, 178, 0.25);
}


/* --------------------------------------------------------------------------
   Blog Platform
   -------------------------------------------------------------------------- */

.card-blog {
    --platform-accent: #d97706;
}

.card-blog .platform-icon {
    color: var(--platform-accent);
}

.card-blog:hover {
    border-color: rgba(217, 119, 6, 0.25);
}


/* --------------------------------------------------------------------------
   Social Platform
   -------------------------------------------------------------------------- */

.card-social {
    --platform-accent: #db2777;
}

.card-social .platform-icon {
    color: var(--platform-accent);
}

.card-social:hover {
    border-color: rgba(219, 39, 119, 0.25);
}


/* --------------------------------------------------------------------------
   Platform Header
   -------------------------------------------------------------------------- */

.platform-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.platform-header-content {
    min-width: 0;
}

.platform-eyebrow {
    margin-bottom: 8px;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.platform-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.platform-description {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 15px;
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   Platform Layout
   -------------------------------------------------------------------------- */

.platform-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.platform-main {
    min-width: 0;
}

.platform-sidebar {
    min-width: 0;
}


/* --------------------------------------------------------------------------
   Platform Section
   -------------------------------------------------------------------------- */

.platform-section {
    margin-bottom: 28px;
}

.platform-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.platform-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.platform-section-link {
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 13px;
    text-decoration: none;
}

.platform-section-link:hover {
    color: var(--dhilaalo-text, #111827);
}


/* --------------------------------------------------------------------------
   AI
   -------------------------------------------------------------------------- */

.ai-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ai-chat-card {
    min-height: 500px;
}

.ai-prompt-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--dhilaalo-border, #e5e7eb);
    border-radius: 16px;
    background: var(--dhilaalo-card, #fff);
}

.ai-prompt-box textarea {
    flex: 1;
    min-height: 44px;
    max-height: 180px;
    border: 0;
    outline: 0;
    resize: vertical;
    background: transparent;
    font: inherit;
}


/* --------------------------------------------------------------------------
   Tools
   -------------------------------------------------------------------------- */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    padding: 20px;
}

.tool-card-title {
    margin: 14px 0 7px;
    font-size: 16px;
}

.tool-card-description {
    margin: 0;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.blog-card {
    overflow: hidden;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    background: var(--dhilaalo-surface, #f3f4f6);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 18px;
}

.blog-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.blog-card-excerpt {
    margin: 0;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   Social
   -------------------------------------------------------------------------- */

.social-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-post {
    padding: 20px;
}

.social-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.social-post-user {
    min-width: 0;
}

.social-post-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.social-post-meta {
    margin: 3px 0 0;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 11px;
}

.social-post-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.social-post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--dhilaalo-border, #e5e7eb);
}

.social-action {
    border: 0;
    background: transparent;
    color: var(--dhilaalo-muted, #6b7280);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.social-action:hover {
    color: var(--dhilaalo-text, #111827);
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {

    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-layout {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 640px) {

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .platform-header {
        flex-direction: column;
    }
}