/* ==========================================================================
   Sahifa Shortcodes Plugin - CSS
   Khôi phục giao diện shortcode từ theme Sahifa
   ========================================================================== */

/* --------------------------------------------------------------------------
   [box] Shortcode
   -------------------------------------------------------------------------- */
.sahifa-box {
    position: relative;
    margin: 20px 0;
    padding: 16px 16px 16px 50px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sahifa-box-icon {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 20px;
    line-height: 1;
}

.sahifa-box-content {
    overflow: hidden;
}

.sahifa-box-content p:first-child {
    margin-top: 0;
}

.sahifa-box-content p:last-child {
    margin-bottom: 0;
}

/* Box types */
.sahifa-box-info {
    background: #e8f4fd;
    border-left-color: #2196F3;
    color: #0d47a1;
}

.sahifa-box-success {
    background: #e8f5e9;
    border-left-color: #4CAF50;
    color: #1b5e20;
}

.sahifa-box-warning {
    background: #fff8e1;
    border-left-color: #FF9800;
    color: #e65100;
}

.sahifa-box-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #b71c1c;
}

.sahifa-box-note {
    background: #f3e5f5;
    border-left-color: #9C27B0;
    color: #4a148c;
}

.sahifa-box-download {
    background: #e0f2f1;
    border-left-color: #009688;
    color: #004d40;
}

/* Box alignment */
.sahifa-box.aligncenter {
    text-align: center;
}

.sahifa-box.alignleft {
    text-align: left;
}

.sahifa-box.alignright {
    text-align: right;
}

/* --------------------------------------------------------------------------
   [divider] Shortcode
   -------------------------------------------------------------------------- */
.sahifa-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
    height: 0;
    position: relative;
}

.sahifa-divider::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #00BCD4);
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   [button] Shortcode
   -------------------------------------------------------------------------- */
.sahifa-btn {
    display: inline-block;
    text-decoration: none !important;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sahifa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

.sahifa-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Button sizes */
.sahifa-btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.sahifa-btn-medium {
    padding: 10px 22px;
    font-size: 15px;
}

.sahifa-btn-big {
    padding: 14px 32px;
    font-size: 17px;
}

/* Button colors */
.sahifa-btn-blue {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff !important;
}

.sahifa-btn-red {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff !important;
}

.sahifa-btn-green {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: #fff !important;
}

.sahifa-btn-orange {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: #fff !important;
}

.sahifa-btn-purple {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   [learn_more] Shortcode
   -------------------------------------------------------------------------- */
.sahifa-learn-more {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sahifa-learn-more-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    user-select: none;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sahifa-learn-more-header:hover {
    background: linear-gradient(135deg, #e8ecf1, #dce1e8);
}

.sahifa-learn-more-icon {
    display: inline-block;
    font-size: 11px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sahifa-learn-more-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 16px;
    background: #fff;
}

/* Open state */
.sahifa-learn-more.open .sahifa-learn-more-icon {
    transform: rotate(90deg);
}

.sahifa-learn-more.open .sahifa-learn-more-body {
    max-height: 2000px;
    padding: 16px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .sahifa-box {
        padding: 14px 14px 14px 44px;
        font-size: 14px;
    }

    .sahifa-btn-big {
        padding: 12px 24px;
        font-size: 15px;
    }

    .sahifa-learn-more-header {
        font-size: 14px;
    }
}
