/**
 * NUES Unijos Public Styles
 * @since 1.0.0
 */

/* News Ticker */
.nues-news-ticker-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}

.nues-ticker-label {
    flex-shrink: 0;
    padding: 0 20px;
    font-weight: 600;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-icon {
    font-size: 1.2em;
}

.nues-ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.nues-ticker-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.ticker-item a:hover {
    opacity: 0.8;
}

.ticker-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.ticker-separator {
    opacity: 0.5;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Executives Grid */
.nues-executives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.nues-executive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nues-executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.executive-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f5f5f5;
}

.executive-info {
    padding: 20px;
}

.executive-name {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
}

.executive-role {
    color: #2E7D32;
    font-weight: 500;
    margin-bottom: 8px;
}

.executive-meta {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0;
}

.executive-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.executive-social a {
    color: #666;
    font-size: 1.2em;
    transition: color 0.3s;
}

.executive-social a:hover {
    color: #2E7D32;
}

/* Gallery Grid */
.nues-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.nues-gallery-album {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.nues-gallery-album:hover {
    transform: scale(1.02);
}

.album-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
}

.album-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px;
}

.album-count {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Events List */
.nues-events-list {
    display: grid;
    gap: 20px;
}

.nues-event-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-left: 4px solid #2E7D32;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-date-box {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 10px;
    background: #2E7D32;
    color: #fff;
    border-radius: 4px;
}

.event-day {
    font-size: 2em;
    font-weight: bold;
    display: block;
}

.event-month {
    font-size: 0.9em;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.3em;
    margin: 0 0 10px;
}

.event-title a {
    color: #333;
    text-decoration: none;
}

.event-title a:hover {
    color: #2E7D32;
}

.event-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-actions {
    margin-top: 10px;
}

.event-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #2E7D32;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.event-actions .button:hover {
    background: #1B5E20;
}

/* Archive Grid */
.nues-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.nues-archive-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.nues-archive-item:hover {
    transform: translateY(-3px);
}

.archive-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-content {
    padding: 20px;
}

.archive-category {
    display: inline-block;
    padding: 4px 12px;
    background: #2E7D32;
    color: #fff;
    font-size: 0.8em;
    border-radius: 3px;
    margin-bottom: 10px;
}

.archive-title {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.archive-title a {
    color: #333;
    text-decoration: none;
}

.archive-title a:hover {
    color: #2E7D32;
}

.archive-excerpt {
    color: #666;
    line-height: 1.6;
}

/* Resource Cards */
.nues-resource-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.resource-header {
    display: flex;
    gap: 20px;
    align-items: start;
}

.resource-icon {
    font-size: 3em;
    color: #2E7D32;
}

.resource-info {
    flex: 1;
}

.resource-title {
    font-size: 1.3em;
    margin: 0 0 10px;
}

.resource-meta {
    color: #666;
    font-size: 0.9em;
}

.resource-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.resource-actions .button {
    padding: 10px 20px;
    background: #2E7D32;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.resource-actions .button:hover {
    background: #1B5E20;
}

.resource-actions .button.secondary {
    background: #666;
}

.resource-actions .button.secondary:hover {
    background: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nues-executives-grid,
    .nues-gallery-grid,
    .nues-archive-grid {
        grid-template-columns: 1fr;
    }

    .nues-ticker-label {
        font-size: 0.9em;
        padding: 0 10px;
    }

    .nues-event-item {
        flex-direction: column;
    }

    .event-date-box {
        width: 100%;
    }
}

/* Loading States */
.nues-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.nues-loading:after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Empty States */
.nues-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.nues-empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}
