/* 
 * Responsive Right Bar Styles for OJS 3 Theme
 * Save as rightBar.css and include in your theme
 */

/* Right sidebar styling */
.pkp_structure_sidebar {
    padding: 0;
}

/* Block styling */
.pkp_block {
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pkp_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pkp_block .title {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 16px 20px;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.pkp_block .title:after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.pkp_block .content {
    padding: 20px;
}

/* List styling */
.pkp_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkp_list li {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
    transition: background-color 0.2s ease;
}

.pkp_list li:hover {
    background-color: #f8fafc;
}

.pkp_list li:last-child {
    border-bottom: none;
}

.pkp_list a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.pkp_list a:hover {
    color: #4f46e5;
    padding-left: 5px;
}

.pkp_list i {
    margin-right: 12px;
    color: #4f46e5;
    font-size: 15px;
    width: 20px;
    text-align: center;
    background: #f1f5f9;
    padding: 7px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pkp_list a:hover i {
    background: #eef2ff;
    transform: scale(1.1);
}

/* Stats block */
.stats_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.stat_box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    border-left: 4px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat_box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat_box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.stat_box:hover:before {
    opacity: 1;
}

.stat_number {
    font-size: 22px;
    font-weight: 700;
    color: #4f46e5;
    display: block;
    line-height: 1.2;
}

.stat_label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    font-weight: 500;
}

/* Contact block */
.contact_item {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.contact_item:last-child {
    margin-bottom: 0;
}

.contact_icon {
    margin-right: 14px;
    color: #4f46e5;
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
    background: #f1f5f9;
    padding: 7px;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact_item:hover .contact_icon {
    background: #eef2ff;
    transform: scale(1.05);
}

.contact_text {
    flex: 1;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    font-weight: 500;
}

/* Template download button */
.template_button {
    display: block;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    font-size: 14px;
}

.template_button:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.template_button:hover:after {
    opacity: 1;
}

.template_button i {
    margin-right: 8px;
}

/* Description text */
.block_description {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: center;
    padding: 0 8px;
    font-weight: 400;
}

/* Badge */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

/* Responsive adjustments for OJS */
@media (max-width: 1024px) {
    .pkp_structure_sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pkp_block {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .pkp_structure_sidebar {
        grid-template-columns: 1fr;
    }
    
    .stats_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pkp_block .content {
        padding: 15px;
    }
    
    .stats_grid {
        grid-template-columns: 1fr;
    }
    
    .pkp_list a {
        font-size: 13px;
    }
    
    .contact_text {
        font-size: 12px;
    }
}