/* Lightweight Components CSS */

/* News Card Lite */
.ncl {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ncl:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ncl-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.ncl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ncl-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ncl-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ncl-cnt {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ncl-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ncl-date {
    color: #666;
    font-size: 12px;
}

.ncl-cat {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.cat-press {
    background: #e3f2fd;
    color: #1976d2;
}

.cat-disclosure {
    background: #fce4ec;
    color: #c2185b;
}

.cat-event {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cat-default {
    background: #f5f5f5;
    color: #616161;
}

.ncl-ttl {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ncl-sum {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ncl-link {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.ncl-link:hover {
    color: #5a67d8;
}

/* IR Document Lite */
.ird {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.ird:hover {
    background: #f8f9fa;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.1);
}

.ird-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.ird-new {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4757;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.ird-cnt {
    flex: 1;
    min-width: 0;
}

.ird-ttl {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ird-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ird-meta span {
    font-size: 11px;
    color: #666;
}

.ird-type {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: white;
}

.type-pdf {
    background: #ff4757;
}

.type-xls,
.type-xlsx {
    background: #00b894;
}

.type-doc,
.type-docx {
    background: #0984e3;
}

.type-ppt,
.type-pptx {
    background: #e17055;
}

.type-zip {
    background: #636e72;
}

.ird-size {
    font-weight: 500;
}

.ird-cat {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
}

.ird-dl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ird-dl:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .ncl {
        background: #1a1a1a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .ncl:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    
    .ncl-ttl {
        color: #fff;
    }
    
    .ncl-sum,
    .ncl-date {
        color: #aaa;
    }
    
    .ird {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .ird:hover {
        background: #2a2a2a;
    }
    
    .ird-ttl {
        color: #fff;
    }
    
    .ird-meta span {
        color: #aaa;
    }
    
    .ird-cat {
        background: #333;
        color: #fff;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ncl-img {
        height: 150px;
    }
    
    .ncl-ttl {
        font-size: 14px;
    }
    
    .ird {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ird-dl {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
}