/* assets/css/cc.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #081e02;
    color: #fdfde5;
}

.cc-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3e5500;
    background-color: #113803;
    padding: 20px;
}

.cc-header h1 {
    color: #ff9700;
    margin-bottom: 10px;
}

.cc-header p {
    color: #7aa604;
    font-style: italic;
}

.cccardlink {
    display: flex;
    background: #113803;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cccardlink:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.cccardlink > div {
    display: flex;
    width: 100%;
}

.cccardlink img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-cccontent {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cchost {
    color: #B0C4DE;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline;
}

.ccdate {
    color: #ff9700;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-style: italic;
    display: inline;
    margin-left: 8px;
}

.card-cccontent h3 {
    margin: 0 0 10px 0;
    color: #B0C4DE;
    font-size: 1.4em;
}

.card-cccontent p {
    margin: 0 0 15px 0;
    color: #B0C4DE;
    flex-grow: 1;
}

.learn-more {
    color: #98FB98;
    font-weight: bold;
    text-align: right;
}

@media (max-width: 768px) {
    .cccardlink > div {
        flex-direction: column;
    }

    .cccardlink img {
        width: 100%;
        height: 200px;
    }
}

#cccontainer {
    margin: 0 1.15em;
    height: 30em;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: #081e02;
    border-radius: 8px;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #113803;
    border: 1px solid #3e5500;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 150px;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
    color: #B0C4DE;
}

.context-menu li:hover {
    background-color: #1e4d08;
    color: #ff9700;
}

.context-menu-divider {
    height: 1px;
    background-color: #3e5500;
    margin: 4px 0;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.close-button-x {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #3e5500;
    border-radius: 50%;
    color: #fdfde5;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ccimage {
    width: 300px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.cctitle {
    margin: 0 0 10px 0;
    color: #B0C4DE;
    font-size: 1.4em;
}

.ccdescription {
    margin: 0 0 15px 0;
    color: #B0C4DE;
    flex-grow: 1;
}

#publishedDateDialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #113803;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    min-width: 300px;
    border: 1px solid #3e5500;
    color: #fdfde5;
}

#publishedDateDialog h3 {
    margin-top: 0;
    color: #ff9700;
}

#publishedDateDialog label {
    display: block;
    margin-bottom: 5px;
    color: #B0C4DE;
}

#publishedDateInput {
    width: 100%;
    padding: 8px;
    border: 1px solid #3e5500;
    border-radius: 4px;
    background: #081e02;
    color: #fdfde5;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#publishedDateInput:focus {
    outline: none;
    border-color: #3e5500;
}

#saveDateBtn {
    background: #3e5500;
    color: #fdfde5;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#saveDateBtn:hover {
    background: #4a6700;
}

#dateDialogMessage {
    margin-top: 10px;
    color: #ff9700;
    font-size: 0.9em;
}

.dog-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s ease;
}

.dog-btn:hover {
    background: #4a6700;
}

.pageBTN {
    margin: 5px;
}

.pageBTN:hover {
    background: #4a6700;
}