/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4285em;
    color: rgba(0,0,0,.87);
    background-color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid rgba(34,36,38,.15);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header__logo {
    display: block;
    text-align: center;
}

.header__logo-image {
    max-height: 60px;
    width: auto;
}

/* Main Content */
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    min-height: calc(100vh - 100px);
}

#content {
    background-color: transparent;
    background-image: url('../images/bababebi_fondo.jpg');
    background-attachment: fixed;
    background-size: adjust-to-content;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page__title {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0,0,0,.87);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    line-height: 1.28571429em;
}

/* View Styles */
.view {
    margin-bottom: 30px;
}

.view-header {
    text-align: center;
    margin-bottom: 20px;
}

.view-header a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.view-header a:hover {
    text-decoration: underline;
}

/* Views Fields */
.views-field {
    margin-bottom: 15px;
}

.views-label {
    font-weight: bold;
    color: #333;
}

.field-content {
    margin-top: 5px;
}

/* Specific Field Styles */
.views-field-field-date.left {
    float: left;
    width: 50%;
}

.views-field-title.right {
    float: right;
    width: 50%;
    text-align: right;
}

.views-field-field-to {
    clear: both;
    margin-top: 20px;
}

.views-field-field-opinion {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid rgba(0,0,0,.87);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-opinion-long-code {
    font-style: italic;
    line-height: 1.6;
}

.centered {
    text-align: center;
    margin: 20px 0;
}

.views-field-field-model.centered,
.views-field-field-date-texto.centered,
.views-field-field-additional-stamps.centered {
    margin: 10px 0;
}

/* Images */
.views-field-field-front-photo,
.views-field-field-stamp-photo {
    margin: 20px 0;
}

.views-field-field-front-photo img,
.views-field-field-stamp-photo img {
    border: 1px solid rgba(34,36,38,.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.views-field-field-front-photo img:hover,
.views-field-field-stamp-photo img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Footer */
.view-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(34,36,38,.15);
    background-color: rgba(248, 249, 250, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
}

#authenticity-title {
    text-align: center;
    margin-bottom: 20px;
}

#authenticity-title img {
    max-height: 50px;
}

.view-footer p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.view-footer > div {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.view-footer > div > div {
    display: inline-block;
}

.view-footer img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s ease;
}

.view-footer img:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    #main {
        padding: 10px;
    }
    
    .views-field-field-date.left,
    .views-field-title.right {
        float: none;
        width: 100%;
        text-align: left;
    }
    
    .views-field-title.right {
        text-align: left;
    }
    
    .view-footer > div {
        flex-direction: column;
        align-items: center;
    }
    
    .page__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .header__logo-image {
        max-height: 40px;
    }
    
    .page__title {
        font-size: 20px;
    }
    
    .views-field-field-opinion {
        padding: 10px;
    }
}

/* Clearfix */
.views-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Date Display */
.date-display-single {
    font-weight: bold;
    color: #666;
}

/* QR Code */
.views-field-nothing img {
    max-width: 150px;
    height: auto;
}
