/* ======================================================
   instructions-for-authors.css - Author Guidelines Page Specific Styles
   FULLY CORRECTED VERSION
   ====================================================== */

/* ========== INFO CARD COMPONENT ========== */
/* Unique to author guidelines - not in main CSS */
.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e2edff;
    box-shadow: 0 4px 10px rgba(0, 30, 60, 0.06);
    transition: all 0.2s ease;
    height: fit-content;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: #f1c40f;
    box-shadow: 0 8px 16px rgba(0, 40, 70, 0.12);
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    border-left: 4px solid #f39c12;
    padding-left: 12px;
    line-height: 1.3;
}

/* ========== COMPACT CARD COMPONENT ========== */
/* Unique to author guidelines */
.compact-card {
    background: #f9fcff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #d9e8ff;
    box-shadow: 0 2px 6px rgba(0, 20, 40, 0.03);
    height: fit-content;
    transition: all 0.2s ease;
}

.compact-card:hover {
    border-color: #f39c12;
    box-shadow: 0 4px 12px rgba(0, 20, 40, 0.08);
}

.compact-card-title {
    display: inline-block;
    font-size: 1rem !important;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
    border-bottom: 2px dashed #f39c12;
    padding-bottom: 4px;
    line-height: 1.2;
}

/* ========== COMPACT LIST ========== */
/* Unique compact list style */
.compact-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.compact-list .list-item {
    margin-bottom: 2px;
    padding-left: 18px;
    position: relative;
    color: #1e3a5f;
    line-height: 1.5;
}

.compact-list .list-item::before {
    content: "●";
    color: #f39c12;
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 3px;
}

/* ========== ALERT NOTE ========== */
/* Unique alert style - extends base alert-note from main CSS */
.author-alert-note {
    background: #fff8e7;
    border-radius: 12px;
    padding: 14px 18px;
    border-right: 5px solid #f39c12;
    margin: 20px 0;
    font-size: 1rem;
    color: #1e3a5f;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ========== REFERENCE EXAMPLE ========== */
/* Unique reference style - extends base ref-example from main CSS */
.author-ref-example {
    background: #eaf2ff;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    border-left: 5px solid #f39c12;
    margin: 15px 0 10px;
    direction: ltr;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #002b4f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.author-ref-example strong {
    color: #0f3b5e;
    font-family: inherit;
}

/* ========== HIGHLIGHT BLOCK (for examples) ========== */
/* Unique highlight style - extends base highlight-block from main CSS */
.author-highlight-block {
    background: #ffeed9;
    border-right: 6px solid #f39c12;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid #fed7aa;
    position: relative;
    overflow: hidden;
}

.author-highlight-block::before {
    content: "⭐";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    opacity: 0.2;
    pointer-events: none;
}

.author-highlight-text {
    font-size: 0.95rem;
    color: #a54300;
    line-height: 1.6;
    margin: 0;
}

.author-highlight-text em {
    font-style: italic;
    color: #b45d00;
}

/* ========== SECTION HEADER ========== */
/* Section header with specific margin for author guidelines */
.guidelines-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 35px 0 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.guidelines-section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
}

/* Fixed: Added display property */
.guidelines-section-icon::before {
    content: "\f0ae"; /* tasks icon - default */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
}

.guidelines-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f3b5e;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ========== CONTENT BLOCK ========== */
/* Extended content block with hover effect */
.guidelines-content-block {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 25px;
    border: 1px solid #e9edf4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.guidelines-content-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #f1c40f;
}

.guidelines-content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e2f44;
    margin-bottom: 15px;
}

.guidelines-content-text strong {
    color: #b64900;
}

.guidelines-content-text:last-child {
    margin-bottom: 0;
}

/* ========== LIST BULLET EXTENSIONS ========== */
/* Extended bullet list styles - Fixed positioning */
.list-bullet .list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    list-style: none;
}

.list-bullet .list-item i.fa,
.list-bullet .list-item i.fas,
.list-bullet .list-item i.far {
    position: absolute;
    left: 0;
    top: 3px;
    color: #f39c12;
    font-size: 0.9rem;
}

/* ========== PAGE TITLE ========== */
/* Page title specific to author guidelines */
.guidelines-page-header {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.guidelines-page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.guidelines-page-title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.guidelines-page-title-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 5px;
    line-height: 1.2;
}

.guidelines-page-title-sub {
    font-size: 1.1rem;
    color: #1e6f9f;
    line-height: 1.5;
    font-weight: 500;
    margin-left: 0;
    max-width: 700px;
}

/* ========== RTL SUPPORT ========== */
html[dir="rtl"] .info-card-title {
    border-left: none;
    border-right: 4px solid #f39c12;
    padding-left: 0;
    padding-right: 12px;
}

html[dir="rtl"] .compact-list .list-item {
    padding-left: 0;
    padding-right: 18px;
}

html[dir="rtl"] .compact-list .list-item::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .list-bullet .list-item {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .list-bullet .list-item i.fa,
html[dir="rtl"] .list-bullet .list-item i.fas,
html[dir="rtl"] .list-bullet .list-item i.far {
    left: auto;
    right: 0;
}

html[dir="rtl"] .author-alert-note {
    border-right: none;
    border-left: 5px solid #f39c12;
}

html[dir="rtl"] .author-ref-example {
    border-left: none;
    border-right: 5px solid #f39c12;
    text-align: right;
}

html[dir="rtl"] .guidelines-section-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .guidelines-page-title-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-highlight-block {
    border-right: none;
    border-left: 6px solid #f39c12;
}

html[dir="rtl"] .author-highlight-block::before {
    right: auto;
    left: 15px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .guidelines-page-title-main {
        font-size: 1.8rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .guidelines-section-title {
        font-size: 1.2rem;
    }
    
    .guidelines-page-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .guidelines-page-title-main {
        font-size: 1.6rem;
    }
    
    .guidelines-page-title-sub {
        font-size: 1rem;
    }
    
    .info-card,
    .compact-card,
    .guidelines-content-block {
        padding: 16px;
    }
    
    /* Grid overrides for mobile - removed !important */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .guidelines-page-title-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .guidelines-page-title-main {
        font-size: 1.3rem;
    }
    
    .guidelines-section-title {
        font-size: 1.1rem;
    }
    
    .info-card-title {
        font-size: 1.1rem;
    }
    
    .compact-card-title {
        font-size: 0.95rem !important;
    }
    
    .list-bullet .list-item,
    .compact-list .list-item {
        font-size: 0.88rem;
    }
    
    .author-ref-example {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.compact-card,
.guidelines-content-block {
    animation: fadeIn 0.4s ease-out backwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.15s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }
.info-card:nth-child(4) { animation-delay: 0.25s; }
.info-card:nth-child(5) { animation-delay: 0.3s; }
.info-card:nth-child(6) { animation-delay: 0.35s; }
.info-card:nth-child(7) { animation-delay: 0.4s; }
.info-card:nth-child(8) { animation-delay: 0.45s; }
.info-card:nth-child(9) { animation-delay: 0.5s; }
.info-card:nth-child(10) { animation-delay: 0.55s; }

/* ========== INLINE STYLE OVERRIDES ========== */
/* More specific and safer overrides */
.guidelines-content-text[style*="margin-bottom: 20px"],
.guidelines-content-block [style*="margin-bottom: 20px"] {
    margin-bottom: 20px !important;
}

.guidelines-content-text[style*="margin: 20px 0 30px"],
.guidelines-content-block [style*="margin: 20px 0 30px"] {
    margin: 20px 0 30px !important;
}

.guidelines-content-text[style*="margin: 5px 0 20px"],
.guidelines-content-block [style*="margin: 5px 0 20px"] {
    margin: 5px 0 20px !important;
}

/* Safer monospace override */
.author-ref-example[style*="font-family: monospace"],
.author-ref-example code[style*="font-family: monospace"] {
    font-family: 'Courier New', monospace !important;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========== MARGIN UTILITIES ========== */
.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.my-30 {
    margin: 30px 0;
}

/* ========== ADDITIONAL SAFETY ========== */
/* Ensure proper box sizing */
.info-card,
.compact-card,
.guidelines-content-block,
.author-alert-note,
.author-ref-example,
.author-highlight-block {
    box-sizing: border-box;
}

/* Fix for RTL with animations */
@media (prefers-reduced-motion: reduce) {
    .info-card,
    .compact-card,
    .guidelines-content-block {
        animation: none;
        transition: none;
    }
    
    .info-card:hover,
    .compact-card:hover,
    .guidelines-content-block:hover {
        transform: none;
    }
}