/*
 * Issue Table of Contents Component Styling
 * Styling for the issue TOC component
 */

/* Issue TOC container */
.obj_issue_toc {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;

    /* Issue TOC heading section */
    .heading {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 2px solid #f8f9fa;

        /* Issue cover in TOC */
        .cover {
            text-align: center;
            margin-bottom: 1.5rem;

            img {
                max-width: 250px;
                height: auto;
                border-radius: 8px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                transition: transform 0.3s ease;

                &:hover {
                    transform: scale(1.05);
                }
            }
        }

        /* Issue description in TOC */
        .description {
            color: #555;
            line-height: 1.6;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        /* Publication IDs in TOC */
        .pub_id {
            background: #f8f9fa;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            border-left: 3px solid #2c5aa0;

            .type {
                font-weight: 600;
                color: #2c5aa0;
            }

            .id a {
                color: #28a745;
                text-decoration: none;
                transition: color 0.3s ease;

                &:hover {
                    color: #1e7e34;
                    text-decoration: underline;
                }
            }
        }

        /* Published date in TOC */
        .published {
            background: #e8f5e8;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            border-left: 4px solid #28a745;

            .label {
                font-weight: 600;
                color: #2c5aa0;
                margin-right: 0.5rem;
            }

            .value {
                color: #28a745;
                font-weight: 500;
            }
        }
    }

    /* Issue galleys section */
    .galleys {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;

        h2 {
            color: #2c5aa0;
            font-family: 'Quattrocento', serif;
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .galleys_links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;

            li {
                margin-bottom: 0.5rem;
            }

            a {
                display: inline-block;
                padding: 0.75rem 1.5rem;
                background: #2c5aa0;
                color: white;
                text-decoration: none;
                border-radius: 6px;
                transition: all 0.3s ease;
                font-weight: 500;
                white-space: nowrap;

                &:hover {
                    background: #1e3f6b;
                    transform: translateY(-2px);
                    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
                    color: white;
                    text-decoration: none;
                }
            }
        }
    }

    /* Sections in TOC */
    .sections {
        margin-top: 2rem;

        .section {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            transition: all 0.3s ease;

            &:hover {
                box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
                border-color: #2c5aa0;
            }

            h2 {
                color: #2c5aa0;
                font-family: 'Quattrocento', serif;
                font-weight: 700;
                font-size: 1.4rem;
                margin-bottom: 1rem;
                padding-bottom: 0.5rem;
                border-bottom: 2px solid #f8f9fa;
            }

            /* Article list in sections */
            .cmp_article_list {
                list-style: none;
                padding: 0;
                margin: 0;

                li {
                    margin-bottom: 1rem;
                    padding: 1rem;
                    background: #f8f9fa;
                    border-radius: 6px;
                    transition: all 0.3s ease;

                    &:hover {
                        background: #e9ecef;
                        transform: translateX(5px);
                    }
                }
            }
        }
    }
}

/* Responsive design for issue TOC */
@media (max-width: 768px) {
    .obj_issue_toc {
        padding: 1rem;

        .heading .cover img {
            max-width: 200px;
        }

        .sections .section {
            padding: 1rem;
        }

        .galleys {
            padding: 1rem;

            .galleys_links {
                flex-direction: column;

                a {
                    text-align: center;
                    width: 100%;
                }
            }
        }
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .obj_issue_toc .heading .cover img {
        max-width: 220px;
    }
}

/* Large screen enhancements */
@media (min-width: 1200px) {
    .obj_issue_toc .heading .cover img {
        max-width: 300px;
    }
}
