/*
 * Issue Page Styling
 * Comprehensive styling for the issue page with modern design
 * and Sentam theme integration
 */

/* Issue page container styling */
.page_issue {
    background-color: white;
    padding: 0 0 2rem 0;
    min-height: calc(100vh - 150px);
    margin-top: 0;
    max-width: 1200px;
    margin: 0 auto;

    /* Remove any default OJS spacing */
    #main-content {
        margin-top: 0;
        padding-top: 0;
    }

    /* Page header styling */
    .page-header {
        background: white;
        color: teal;
        padding: 1rem 0;
        margin-bottom: 1rem;
        text-align: left;

        h1 {
            color: teal;
            font-family: 'Quattrocento', serif;
            font-weight: 700;
            font-size: 1.5rem;
            margin: 0;
        }
    }

    /* Issue content container */
    .issue-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        background: white;
    }

    /* Issue identification styling */
    .issue-identification {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 2rem;
        border-radius: 12px;
        margin-bottom: 2rem;
        text-align: center;
        border-left: 4px solid #2c5aa0;

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

        .issue-meta {
            color: #666;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .issue-date {
            color: #28a745;
            font-weight: 600;
            font-size: 1.1rem;
        }
    }

    /* Issue cover styling */
    .issue-cover {
        text-align: center;
        margin-bottom: 2rem;

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

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

    /* Issue TOC styling */
    .obj_issue_toc {
        background: white;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

        .heading {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid #f8f9fa;

            .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);
                }
            }

            .description {
                color: #555;
                line-height: 1.6;
                font-size: 1rem;
                margin-bottom: 1rem;
            }

            .pub_id {
                background: #f8f9fa;
                padding: 0.5rem 1rem;
                border-radius: 6px;
                margin-bottom: 0.5rem;
                font-size: 0.9rem;

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

                .id a {
                    color: #28a745;
                    text-decoration: none;
                }

                .id a:hover {
                    text-decoration: underline;
                }
            }

            /* Issue TOC published date styling */
            .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 styling */
        .galleys {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: #f8f9fa;
            border-radius: 8px;

            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;

                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;
                }

                a:hover {
                    background: #1e3f6b;
                    transform: translateY(-2px);
                    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
                }
            }
        }

        /* Sections styling */
        .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;
                }

                .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 */
    @media (max-width: 768px) {
        padding: 0 0 1rem 0;

        .issue-content {
            padding: 0 1rem;
            margin: 0 0.5rem;
        }

        .obj_issue_toc {
            padding: 1rem;

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

        .obj_article_summary {
            flex-direction: column;
            gap: 0.5rem;

            .cover {
                width: 60px;
                height: 80px;
                align-self: flex-start;
            }
        }

        .obj_issue_toc .sections .section {
            padding: 1rem;
        }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .issue-content {
            max-width: 90%;
            padding: 0 1.5rem;
        }

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

    /* Large screen enhancements */
    @media (min-width: 1200px) {
        .issue-content {
            max-width: 1200px;
            padding: 0 2rem;
        }

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