/* app/static/css/style.css */

:root {
    --primary-color: #ff6f61;
    --secondary-color: #4a4a4a;
    --background-color: #f9f9f9;
    --card-bg-color: #ffffff;
    --text-color: #333;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 420px; /* Імітація екрану телефону */
    height: 100vh;
    max-height: 800px;
    background-color: var(--card-bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

/* --- Головна сторінка --- */
.hero-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.hero-screen h1 {
    font-size: 1.8em;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    display: block;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: 200px;
    transition: transform 0.2s ease;
}
.hero-buttons .btn:hover {
    transform: scale(1.05);
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- Сторінка /pets --- */
.pet-gallery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.nav-button {
    position: absolute;
    top: 0;
    height: 70%; /* Навігація тільки на фото */
    width: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.nav-button.prev { left: 0; }
.nav-button.next { right: 0; }

.pet-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: #d0b4f6; /* Фон для інформаційної частини */
}

.pet-photo-container {
    height: 70%;
    width: 100%;
    flex-shrink: 0;
    position: relative; /* Для можливого оверлея, якщо знадобиться */
}

.pet-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.pet-info-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pet-info-container .pet-name {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
    color: var(--secondary-color);
}

.pet-short-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 12%;
}

.pet-short-info p {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 0;
    font-size: 1em;
    color: var(--text-color);
    text-align: center;
}

.pet-short-info p strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.pet-info-container .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto; /* Притискає кнопки до низу */
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pet-info-container .action-buttons .btn {
    text-decoration: none;
    padding: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
    text-align: center;
    transition: transform 0.2s ease;
    border-radius: 30px;
    border: 1px solid black;
}

.pet-info-container .action-buttons .btn-primary {
    color: black;
    background-color: white;
}

.pet-info-container .action-buttons .btn-secondary {
    color: white;
    background-color: black;
}


/* --- Сторінка деталей тварини --- */
.pet-detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #d1b4f6;
}

.pet-detail-container .pet-photo-wrapper {
    width: 100%;
    height: 60%; /* Фото займає 60% висоти */
    flex-shrink: 0;
    background-color: #d1b4f6;
    position: relative;
}

.pet-detail-container .back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    text-decoration: none;
}

.pet-detail-container .back-button:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pet-detail-container .back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.pet-detail-container .back-button:hover svg {
    transform: translateX(-2px);
}

.pet-detail-container .pet-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-detail-container .pet-info {
    padding: 15px 20px;
    border-radius: 10px;
    flex-grow: 1;
    background-color: #f9ffa2;
    width: 80%;
    margin: 0 auto;
    overflow-y: auto; /* Дозволити прокрутку, якщо контенту багато */
}

.pet-detail-container .action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: #d1b4f6;
    flex-shrink: 0; /* Запобігти зменшенню розміру кнопок */
}

.pet-detail-container .action-buttons .btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.pet-detail-container .action-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.pet-detail-container .action-buttons button img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.pet-detail-container .action-buttons button:hover img {
    opacity: 1;
}

.pet-detail-container .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pet-detail-container h2 {
    margin: 0;
    font-size: 1.5em;
}

.pet-detail-container .info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.pet-detail-container .info-tags span {
    background-color: #eee;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.pet-detail-container .pet-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}

/* --- New Index Page Styles --- */
.hero-container-index {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: #d0b4f6;
}

.hero-image-container {
    height: 40vh;
    width: 100%;
    text-align: center;
    overflow: hidden; /* Added to prevent horizontal scroll */
}

.hero-image-container img {
    height: 100%;
    object-fit: cover;
    margin-left: 5%;
}

.hero-text-index {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-text-index h1 {
    font-size: 1.5em;
    color: var(--secondary-color);
    line-height: 1.4;
}

.hero-buttons-index {
    height: 20vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    gap: 15px;
}

.hero-buttons-index .btn {
    text-decoration: none;
    padding: 15px 0;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
    text-align: center;
    transition: transform 0.2s ease;
    border-radius: 30px;
    border: 1px solid black;
}

.hero-buttons-index .btn:hover {
    transform: scale(1.05);
}

.hero-buttons-index .btn-primary {
    color: black;
    background-color: white;
}

.hero-buttons-index .btn-secondary {
    color: white;
    background-color: black;
}