/**
 * Public Styles for Convenções Coletivas
 */

.cc-public-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.cc-header {
    margin-bottom: 30px;
    text-align: center;
}

.cc-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 4px solid #e94560;
    display: inline-block;
    position: relative;
}

.cc-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #16213e;
    border-radius: 2px;
}

/* Search */
.cc-search-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.cc-public-search {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
}

.cc-public-search:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.cc-public-search::placeholder {
    color: #999;
}

.cc-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.cc-search-icon svg {
    display: block;
}

/* Grid */
.cc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.cc-column {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cc-column-title {
    margin: 0;
    padding: 18px 24px;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.cc-title-icon {
    font-size: 24px;
}

.cc-title-quimicos {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.cc-title-farmaceuticos {
    background: linear-gradient(135deg, #1a1a2e, #4a1942);
}

.cc-document-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.cc-document-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.3s ease;
}

.cc-document-item:last-child {
    border-bottom: none;
}

.cc-document-item:hover {
    background-color: #f8f9fa;
}

.cc-document-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.cc-document-link:hover {
    color: #e94560;
}

.cc-pdf-icon {
    flex-shrink: 0;
    color: #dc3232;
    display: flex;
    align-items: center;
}

.cc-pdf-icon svg {
    display: block;
}

.cc-document-title {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.cc-document-year {
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.cc-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    color: #666;
    background: #f5f5f5;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cc-download-btn:hover {
    background: #e94560;
    color: #ffffff;
    transform: scale(1.1);
}

.cc-download-btn svg {
    display: block;
}

.cc-empty-message {
    padding: 30px 24px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .cc-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cc-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cc-title {
        font-size: 26px;
    }
    
    .cc-column-title {
        font-size: 20px;
        padding: 15px 20px;
    }
    
    .cc-document-item {
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    
    .cc-document-link {
        gap: 8px;
    }
    
    .cc-document-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cc-public-container {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .cc-title {
        font-size: 22px;
    }
    
    .cc-public-search {
        padding: 12px 45px 12px 16px;
        font-size: 14px;
    }
    
    .cc-document-item {
        padding: 10px 12px;
    }
    
    .cc-document-link {
        gap: 6px;
    }
    
    .cc-document-title {
        font-size: 13px;
    }
    
    .cc-document-year {
        font-size: 11px;
        padding: 1px 8px;
    }
    
    .cc-download-btn {
        width: 32px;
        height: 32px;
    }
    
    .cc-download-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .cc-pdf-icon svg {
        width: 20px;
        height: 20px;
    }
}