/* Wikipedia style CSS */
#wiki-container {
    display: flex;
    font-family: sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Mobile header (hidden on desktop) */
#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.menu-button,
.search-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #54595d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button i,
.search-button i {
    width: 24px;
    height: 24px;
}

.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logoball {
    height: 30px;
    width: auto;
}

.mobile-logo span {
    font-family: Georgia, "Linux Libertine", Times, serif;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 0;
    color: #000;
}

#wiki-sidebar {
    width: 160px;
    padding: 20px;
    background-color: #f8f9fa;
    border-right: 1px solid #a2a9b1;
    height: 100vh;
    position: sticky;
    top: 0;
}

.wiki-logo {
    margin-bottom: 20px;
    text-align: center;
}

.wiki-logo a {
    text-decoration: none;
    display: block;
}

.wiki-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.wiki-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.wiki-nav li {
    margin-bottom: 10px;
}

.wiki-nav a {
    color: #0645ad;
    text-decoration: none;
}

.wiki-nav a:hover {
    text-decoration: underline;
}

#wiki-content {
    flex: 1;
    padding: 20px;
    max-width: 1000px;
}

#wiki-header {
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 20px;
}

#wiki-header h1 {
    font-family: "Linux Libertine", Georgia, Times, serif;
    font-size: 28px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* Pronunciation icon styling */
.pronunciation-icon {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin-left: 3px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    vertical-align: baseline;
    display: inline-block;
    color: #000;
    stroke-width: 2.5;
}

.pronunciation-icon:hover {
    opacity: 1;
}

.wiki-tabs {
    margin-top: 10px;
}

.wiki-tabs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.wiki-tabs li {
    margin-right: 20px;
}

.wiki-tabs a {
    color: #0645ad;
    text-decoration: none;
    font-size: 14px;
}

.wiki-tabs a:hover {
    text-decoration: underline;
}

.wiki-tabs a.active {
    color: #000;
    font-weight: bold;
    pointer-events: none;
}

#wiki-article {
    font-size: 14px;
}

/* Paragraph styling for proper spacing */
#wiki-article p {
    margin: 1em 0;
    line-height: 1.6;
}

/* Card magic hover effect */
.card-magic-hover {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.card-magic-hover::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/Z16r.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.card-magic-hover:hover::after {
    opacity: 1;
}

/* Dog person hover effect */
.dog-person-hover {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.dog-person-hover::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/dog.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.dog-person-hover:hover::after {
    opacity: 1;
}

.wiki-infobox {
    float: right;
    margin: 0 0 20px 20px;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 5px;
    width: 270px;
    font-size: 13px;
}

.wiki-infobox h2 {
    text-align: center;
    font-size: 18px;
    margin: 5px 0;
    font-weight: normal;
}

.wiki-infobox-image {
    text-align: center;
    margin-bottom: 10px;
}

.image-placeholder {
    background-color: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.caption {
    font-size: 12px;
}

.wiki-infobox table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-infobox th {
    text-align: left;
    vertical-align: top;
    padding: 4px;
    font-weight: normal;
    background-color: #eaecf0;
    width: 30%;
}

.wiki-infobox td {
    padding: 4px;
    vertical-align: top;
}

.wiki-infobox ul {
    padding-left: 20px;
    margin: 0;
}

.wiki-first-paragraph {
    margin-top: 20px;
}

/* Wikipedia-style floating image box */
.wiki-image-box {
    float: right;
    margin: 0 0 20px 20px;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 5px;
    width: 220px;
    font-size: 13px;
    clear: right;
}

.wiki-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.wiki-image-box .caption {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

/* Wikipedia-style image gallery */
.wiki-gallery {
    margin: 2em 0;
    clear: both;
}

.wiki-gallery-box {
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 10px;
    margin: 0 auto;
}

.wiki-gallery-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.wiki-gallery-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.wiki-gallery-item {
    text-align: center;
    width: 200px;
}

.wiki-gallery-thumb {
    border: 1px solid #a2a9b1;
    background-color: #fff;
    padding: 3px;
    display: inline-block;
    margin-bottom: 5px;
}

.wiki-gallery-thumb img {
    display: block;
    height: 150px;
    width: auto;
    max-width: 194px;
}

.wiki-gallery-caption {
    font-size: 13px;
    line-height: 1.4;
    color: #222;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .wiki-gallery-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .wiki-gallery-item {
        width: 100%;
        max-width: 250px;
    }
    
    .wiki-gallery-thumb img {
        width: 100%;
        height: auto;
        max-width: none;
    }
}

/* Wikipedia-style single centered image */
.wiki-single-image {
    text-align: center;
    margin: 2em 0;
    clear: both;
}

.wiki-single-image-frame {
    display: inline-block;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 5px;
}

.wiki-single-image img {
    display: block;
    max-width: 400px;
    height: auto;
}

.wiki-single-image .caption {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    padding: 0 10px 5px;
}

@media (max-width: 768px) {
    .wiki-single-image img {
        max-width: 100%;
    }
}

/* Full-width Wikipedia-style image */
.wiki-full-width-image {
    margin: 2em -20px;
    clear: both;
    background-color: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
    padding: 15px 20px;
}

.wiki-full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wiki-full-width-image .caption {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 10px;
    color: #54595d;
    font-style: italic;
}

@media (max-width: 768px) {
    .wiki-full-width-image {
        margin: 2em -20px;
    }
}

.wiki-toc {
    display: table;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 7px;
    font-size: 13px;
    margin: 1em 0;
}

.wiki-toc-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.wiki-toc ul {
    padding-left: 20px;
    margin: 0.3em 0;
}

.wiki-toc a {
    color: #0645ad;
    text-decoration: none;
}

.wiki-toc a:hover {
    text-decoration: underline;
}

h2 {
    font-family: "Linux Libertine", Georgia, Times, serif;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    font-size: 22px;
    margin: 1em 0 0.5em 0;
}

h3 {
    font-weight: normal;
    font-size: 18px;
    margin: 1em 0 0.5em 0;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wiki-quote {
    padding: 10px 20px;
    margin: 1em 0;
    border-left: 3px solid #a2a9b1;
    background-color: #f8f9fa;
    font-style: italic;
}

.wiki-quote cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    margin-top: 5px;
}

.wiki-references {
    font-size: 13px;
}

.wiki-references ol {
    padding-left: 30px;
}

.wiki-external-links ul {
    padding-left: 30px;
}

.wiki-categories {
    border-top: 1px solid #a2a9b1;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 12px;
    color: #555;
}

/* Wikipedia table styling */
.wiki-filmography {
    border-collapse: collapse;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    margin: 1em 0;
    width: 100%;
    font-size: 13px;
}

.wiki-filmography th {
    background-color: #eaecf0;
    border: 1px solid #a2a9b1;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    vertical-align: top;
}

.wiki-filmography td {
    border: 1px solid #a2a9b1;
    padding: 8px;
    vertical-align: top;
}

/* Fixed widths for filmography columns */
.wiki-filmography th:first-child,
.wiki-filmography td:first-child {
    width: 140px;
}

.wiki-filmography th:nth-child(2),
.wiki-filmography td:nth-child(2) {
    width: auto;
}

.wiki-filmography th:last-child,
.wiki-filmography td:last-child {
    width: 200px;
}

.wiki-filmography tr:nth-child(even) {
    background-color: #f8f9fa;
}

.wiki-filmography tr:nth-child(odd) {
    background-color: #ffffff;
}

.wiki-filmography tr:hover {
    background-color: #eaf3ff;
}

/* Responsive text for cursor description */
.mobile-text {
    display: none;
}

.desktop-text {
    display: inline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #wiki-container {
        flex-direction: column;
    }
    
    /* Show mobile header */
    #mobile-header {
        display: flex;
    }
    
    /* Hide sidebar by default on mobile */
    #wiki-sidebar {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 250px;
        height: calc(100vh - 50px);
        background-color: #fff;
        border-right: 1px solid #a2a9b1;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
    }
    
    /* Show sidebar when active */
    #wiki-sidebar.active {
        display: block;
    }
    

    
    /* Adjust content area for fixed header */
    #wiki-content {
        padding-top: 60px;
        width: 100%;
    }
    
    #wiki-header {
        background-color: #f8f9fa;
        margin: 0 -20px 20px -20px;
        padding: 15px 20px;
    }
    
    #wiki-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .wiki-tabs {
        margin-top: 0;
    }
    
    .wiki-tabs ul {
        gap: 0;
    }
    
    .wiki-tabs li {
        margin-right: 0;
    }
    
    .wiki-tabs a {
        padding: 8px 12px;
        border-bottom: 2px solid transparent;
    }
    
    .wiki-tabs a.active {
        border-bottom-color: #000;
    }
    
    .wiki-nav ul {
        display: block;
        padding: 0;
    }
    
    .wiki-nav li {
        margin: 0;
        text-align: left;
        border-bottom: 1px solid #eaecf0;
    }
    
    .wiki-nav a {
        font-size: 16px;
        padding: 12px 0;
        display: block;
        background: none;
        border-radius: 0;
    }
    
    .wiki-infobox {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    /* Show mobile text, hide desktop text on mobile */
    .mobile-text {
        display: inline;
    }
    
    .desktop-text {
        display: none;
    }
} 