/**
 * Frontend styles for Application Name block
 */

.wp-block-huxly-application-name {

}

.wp-block-huxly-application-name.has-text-align-left {
    text-align: left;
}

.wp-block-huxly-application-name.has-text-align-center {
    text-align: center;
}

.wp-block-huxly-application-name.has-text-align-right {
    text-align: right;
}

.huxly-app-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
}

.huxly-app-header .huxly-app-icon {
    flex-shrink: 0;
}

.huxly-app-header .huxly-app-icon .dashicons {
    font-size: 2em;
    width: 1em;
    height: 1em;
}

.huxly-app-header .huxly-custom-icon {
    max-width: 48px;
    height: auto;
}

.huxly-app-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ast-global-color-4, #fff);
}

.huxly-app-description {
    margin: 0 0 1em 0;
    color: var(--ast-global-color-4, #fff);
    line-height: 1.5;
}

.huxly-app-about,
.huxly-app-faq {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e0e0e0;
}

.huxly-app-about h3,
.huxly-app-faq h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.25em;
    font-weight: 600;
    color: #333;
}

.huxly-app-about p,
.huxly-app-faq p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.huxly-app-about ul,
.huxly-app-faq ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

.huxly-app-about li,
.huxly-app-faq li {
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.huxly-app-about details,
.huxly-app-faq details {
    margin: 1em 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.huxly-app-about details summary,
.huxly-app-faq details summary {
    padding: 1em;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    border: none;
    outline: none;
    user-select: none;
}

.huxly-app-about details summary:hover,
.huxly-app-faq details summary:hover {
    background: #e9ecef;
}

.huxly-app-about details[open] summary,
.huxly-app-faq details[open] summary {
    border-bottom: 1px solid #e0e0e0;
}

.huxly-app-about details .details-content,
.huxly-app-faq details .details-content,
.huxly-app-about details > div:not(summary),
.huxly-app-faq details > div:not(summary) {
    padding: 1em;
}

.huxly-app-about details .details-content p:last-child,
.huxly-app-faq details .details-content p:last-child,
.huxly-app-about details > div:not(summary) p:last-child,
.huxly-app-faq details > div:not(summary) p:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .huxly-app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .wp-block-huxly-application-name.has-text-align-center .huxly-app-header {
        align-items: center;
    }
    
    .wp-block-huxly-application-name.has-text-align-right .huxly-app-header {
        align-items: flex-end;
    }
    
    .huxly-app-header .huxly-app-icon .dashicons {
        font-size: 1.5em;
    }
    
    .huxly-app-header .huxly-custom-icon {
        max-width: 32px;
    }
}

/* Color support */
.wp-block-huxly-application-name.has-background {
    padding: 1.5em;
}

.wp-block-huxly-application-name.has-text-color .huxly-app-description {
    color: inherit;
    opacity: 0.8;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .huxly-app-about,
    .huxly-app-faq {
        border-top-color: #444;
    }
    
    .huxly-app-about h3,
    .huxly-app-faq h3 {
        color: #f0f0f0;
    }
    
    .huxly-app-description {
        color: #ccc;
    }
    
    .huxly-app-about details,
    .huxly-app-faq details {
        border-color: #444;
    }
    
    .huxly-app-about details summary,
    .huxly-app-faq details summary {
        background: #2a2a2a;
        color: #f0f0f0;
    }
    
    .huxly-app-about details summary:hover,
    .huxly-app-faq details summary:hover {
        background: #3a3a3a;
    }
    
    .huxly-app-about details[open] summary,
    .huxly-app-faq details[open] summary {
        border-bottom-color: #444;
    }
}