
* {
  box-sizing: border-box;
}

body {

  background-color: #FFFDFD;
font-family: Helvetica, Verdana, sans-serif;
}

.page {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

.page-title {
    margin-bottom: 20px;
}

nav {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;

    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

a:link, a:visited {
  color: black;
  text-decoration: none;
}

nav a:link,
nav a:visited {
  background-color: #D600A9;
  color: white;
  padding: 14px 25px;
  font-weight: bold;
  border-radius: 6px;
  display: inline-block;
}

nav a:hover {
    background-color: black;
	color: white;
}

.header {
  background-color: #FFFFFF;
  padding: 30px;
  text-align: center;
}

h1 {
	color: #E70CC2;
	margin-top: 0;
}

h2 {
	color: #E70CC2;
	font-size: 1.8em;
}

.column {
  float: left;
  width: 33.33%;
  padding: 10px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

a:hover {
  color: #E70CC2;
}

.footer {
  background-color: white;
  padding: 10px;
  text-align: center;
}

.collection-list a {
    display: block;
    padding: 8px 0;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-box {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
}

.stat-number {
    color: #E70CC2;
    font-size: 28px;
    font-weight: bold;
}

.category-card {
    background-color: white;
    border-left: 5px solid #F48ACB;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.category-card h2 {
    margin-top: 0;
}

.category-card a {
    display: block;
    padding: 6px 0;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collection-list a {
    display: block;
    padding: 6px 0;
    line-height: 1.4;
}

.collection-list {
    max-width: 700px;
}

.doll-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.doll-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: black;
    display: block;
	min-height: 340px;
}

.doll-card img {
    width: 180px;
    height: 220px;
    object-fit: contain;
}

.doll-card h3 {
    margin: 10px 0 5px 0;
}

.doll-card:hover {
    background-color: #FFF8FC;
    color: black;
}

.doll-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.doll-detail img {
    width: 750px;
	max-width: 100%;
    height: auto;
}

.doll-info {
    background-color: #FFFDFD;
    padding: 25px;
    border-left: 5px solid #F08AD8;
    border-radius: 8px;
	max-width: 500px;
}

.doll-info h2 {
    margin-top: 0;
}

.photo-caption {
    font-size: .9em;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.doll-photo {
    text-align: center;
}

.year-summary {
    margin-bottom: 30px;
}

.year-summary p {
    font-size: 1.05em;
    line-height: 1.5;
}

/* Major collection sections on individual year pages */

.year-section {
    margin-top: 45px;
    margin-bottom: 55px;
    padding-top: 30px;
    border-top: 2px solid #F5B3DF;
}

/* Do not put a divider above the first major collection */
.year-summary + .year-section {
    border-top: none;
    padding-top: 0;
    margin-top: 28px;
}

.year-section-title {
    color: #E70CC2;
    font-size: 1.8em;
    margin: 0 0 26px 0;
}

.year-section-title a {
    color: #E70CC2;
    text-decoration: none;
}

.year-section-title a:hover {
    color: #B4008B;
}


/* Subcategories within each major collection */

.year-subsection {
    margin-bottom: 38px;
}

.year-subsection:last-child {
    margin-bottom: 0;
}

.year-subsection-title {
    color: #222222;
    font-size: 1.2em;
    margin: 0 0 10px 0;
    padding-left: 4px;
}

.year-subsection-title a {
    color: #222222;
    text-decoration: none;
}

.year-subsection-title a:hover {
    color: #E70CC2;
}


/* Keep cards closer to their subcategory heading */

.year-subsection .doll-grid {
    margin-top: 0;
    margin-bottom: 0;
}

/* ===========================
   PAGE HEADER AND SITE LOGO
   =========================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 10px;
}

.page-title {
    flex: 1;
}

.page-title h1 {
    margin-bottom: 8px;
}

.page-title h2,
.page-title h3 {
    color: #333333;
    font-weight: 600;
    margin-top: 6px;
}

.logo-link {
    display: block;
    flex-shrink: 0;
    background-color: transparent !important;
    padding: 0 !important;

    margin-right: 22px;
    margin-top: 8px;
}
.site-logo {
    display: block;
    width: 120px;
    height: auto;
    margin-top: 5px;
    opacity: 0.98;
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.04);
}

@media screen and (max-width: 750px) {
    .page-header {
        align-items: center;
        gap: 20px;
    }

    .site-logo {
        width: 130px;
    }
}

@media screen and (max-width: 500px) {
    .page-header {
        display: block;
    }

    .logo-link {
        margin-top: 18px;
    }

    .site-logo {
        width: 140px;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    margin-top: 70px;
    padding-top: 30px;
    border-top: 2px solid #F5B3DF;
    text-align: center;
    color: #555;
    font-size: .92em;
    line-height: 1.6;
}

.site-footer-logo {
    width: 70px;
    height: auto;
    margin-bottom: 12px;
    opacity: .95;
}

.site-footer-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #E70CC2;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 8px auto;
    max-width: 700px;
}

.site-footer-small {
    font-size: .85em;
    color: #777;
    margin-top: 18px;
}

/* ========================================
   COLLECTOR STATUS BUTTONS
   ======================================== */

.collector-status {
    margin: 18px 0 24px;
    padding: 18px 0;
    border-top: 1px solid #F5B3DF;
    border-bottom: 1px solid #F5B3DF;
}

.collector-status-title {
    margin: 0 0 12px;
    color: #444444;
    font-size: .85em;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.collector-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-button {
    appearance: none;
    background-color: #FFFFFF;
    border: 2px solid #C9C9C9;
    border-radius: 20px;
    color: #555555;
    cursor: pointer;
    font-family: inherit;
    font-size: .92em;
    font-weight: bold;
    padding: 8px 14px;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.status-button:hover {
    border-color: #777777;
    color: #111111;
    transform: translateY(-1px);
}

.status-button:focus-visible {
    outline: 3px solid #F5B3DF;
    outline-offset: 3px;
}

/* Active Own button */

.status-button.status-own.is-active {
    background-color: #111111;
    border-color: #111111;
    color: #FFFFFF;
}

/* Active Wishlist button */

.status-button.status-wishlist.is-active {
    background-color: #E70CC2;
    border-color: #E70CC2;
    color: #FFFFFF;
}

/* Active Favorite button */

.status-button.status-favorite.is-active {
    background-color: #555555;
    border-color: #555555;
    color: #FFFFFF;
}

.collector-status-note {
    margin: 12px 0 0;
    color: #777777;
    font-size: .78em;
    line-height: 1.4;
}

@media screen and (max-width: 500px) {
    .collector-status-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .status-button {
        width: 100%;
    }
}

/* ========================================
   ABOUT AND INFORMATION PAGES
   ======================================== */

.about-content {
    max-width: 900px;
    margin: 35px auto 0;
}

.about-section {
    margin-bottom: 42px;
}

.about-section h2 {
    color: #E70CC2;
    border-bottom: 1px solid #F5B3DF;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.about-section p {
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-section a {
    color: #E70CC2;
    font-weight: bold;
}

/* ========================================
   HOME PAGE
   ======================================== */

.home-intro {
    max-width: 900px;
    margin: 35px auto;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.7;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 40px 0 50px;
}

.stat-card {
    border: 1px solid #F5B3DF;
    border-radius: 12px;
    padding: 24px 15px;
    text-align: center;
    background-color: #FFFFFF;
}

.stat-number {
    display: block;
    color: #E70CC2;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 6px;
}

.stat-label {
    color: #444444;
    font-size: .9em;
}

.home-browse {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.home-browse-card {
    display: block;
    border: 2px solid #F5B3DF;
    border-radius: 14px;
    padding: 28px;
    text-decoration: none;
    background-color: #FFFFFF;
    transition: transform .2s ease, border-color .2s ease;
}

.home-browse-card:hover {
    transform: translateY(-3px);
    border-color: #E70CC2;
}

.home-browse-card h2 {
    color: #E70CC2;
    margin-top: 0;
}

.home-browse-card p {
    color: #444444;
    line-height: 1.6;
}

.featured-archive {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
    padding: 35px;
    border-top: 2px solid #F5B3DF;
    border-bottom: 2px solid #F5B3DF;
}

.featured-image {
    flex: 0 0 40%;
    text-align: center;
}

.featured-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
	border: 1px solid #222222;
}

.featured-text {
    flex: 1;
}

.featured-label {
    color: #777777;
    font-size: .8em;
    font-weight: bold;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.featured-text h2 {
    color: #E70CC2;
    font-size: 2em;
    margin-top: 0;
}

.featured-text p {
    line-height: 1.7;
}

.featured-link {
    display: inline-block;
    margin-top: 10px;
    color: #E70CC2;
    font-weight: bold;
    text-decoration: none;
}

.featured-link:hover {
    text-decoration: underline;
}

.home-about-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin: 55px 0 20px;
}

.home-about-links > div {
    padding: 25px;
    background-color: #FFFDFD;
    border: 1px solid #F5B3DF;
    border-radius: 12px;
}

.home-about-links h2 {
    color: #E70CC2;
    margin-top: 0;
}

.home-about-links p {
    line-height: 1.6;
}

.home-about-links a {
    color: #E70CC2;
    font-weight: bold;
}


/* Responsive home page */

@media screen and (max-width: 850px) {

    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-archive {
        flex-direction: column;
    }

    .featured-image {
        flex: none;
    }
}

@media screen and (max-width: 600px) {

    .home-browse,
    .home-about-links {
        grid-template-columns: 1fr;
    }

    .archive-stats {
        grid-template-columns: 1fr;
    }

    .featured-archive {
        padding: 25px 10px;
    }
}

/* Historical Barbie Collector screenshots */

.archive-screenshots {
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid #f3a4dc;
}

.archive-screenshots h2 {
    color: #e70cc2;
    margin-bottom: 15px;
}

.archive-screenshots-intro {
    max-width: 900px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.archive-screenshot-entry {
    margin: 40px 0 55px 0;
}

.archive-screenshot-entry h3 {
    margin-bottom: 15px;
}

.archive-screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
}

.archive-screenshot-caption {
    max-width: 900px;
    margin-top: 12px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.archive-screenshots-closing {
    max-width: 900px;
    margin-top: 20px;
    padding: 20px 0;
    line-height: 1.6;
    font-style: italic;
}