/*
Theme Name: Japanese Night Theme External
Theme URI: https://example.com/japanese-night-theme-external
Author: Your Name
Author URI: https://example.com
Description: A sensual night reading theme using external image URL for the hero section.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: japanese-night
*/

body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  background-color: #0b0b0f;
  color: #eee;
}
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text {
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero-text p {
  margin-bottom: 1.5rem;
  color: #ddd;
}
.hero-text button {
  background-color: #c0392b;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}
.categories {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background-color: #1a1a1f;
  font-size: 1rem;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.stories {
  padding: 2rem;
}
.stories h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.story-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.story-card {
  flex: 1 1 calc(33% - 1rem);
  background-color: #18181d;
  padding: 1rem;
  border-radius: 8px;
}
.story-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}
.submit-story {
  background-color: #111;
  padding: 2rem;
  text-align: center;
}
.submit-story button {
  background-color: #a93226;
  color: white;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  margin-top: 1rem;
  cursor: pointer;
}
.footer {
  background-color: #0a0a0a;
  color: #777;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}


/* Uniform story card layout */

.story-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.story-card p {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Final layout fixes */

.story-box {
    height: 500px;  /* Increased height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.story-title {
    font-size: 20px;
    font-weight: bold;
    color: #b33939;
    margin-bottom: 10px;
    text-align: center;
}

.story-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.read-full-button {
    text-align: center;
}

.read-full-button a {
    background: #b33939;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}


/* Background image story box updates */

.story-box {
    height: 500px;  /* Increased height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.story-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    z-index: 0;
}

.story-card, .read-full-button {
    position: relative;
    z-index: 1;
}

.story-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 20px auto 10px auto;
    color: #b33939;
}


/* Background image and title above box */

.story-heading {
    font-size: 22px;
    color: #ff6b81;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.story-box {
    height: 500px;  /* Increased height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.story-box .read-full-button {
    margin-bottom: 20px;
}


/* Fix for centering Read Full Story button */

.story-box {
    height: 500px;  /* Increased height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.story-box .read-full-button {
    text-align: center;
    width: 100%;
}

.read-full-button a {
    background: #b33939;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
}


.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.story-wrapper {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.story-heading {
    font-size: 1.2rem;
    color: #ff6b81;
    margin-bottom: 0.5rem;
}

.story-box {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
}

.read-full-button {
    text-align: center;
    margin-top: auto;
}

.read-full-button a {
    display: inline-block;
    background-color: #b33939;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}


.story-heading {
    font-weight: bold;
    font-size: 1.2rem;
    color: #ff6b81;
    margin-bottom: 0.5rem;
    text-align: center;
}

.story-heading small {
    display: block;
    font-size: 0.95rem;
    font-weight: normal;
    color: #ffd6dc;
}
