/**
 * File: assets/css/public.css
 * Public Styles
 */

/* Title Page */
.mdb-title-page {
    margin: 0 0 40px 0;
}

.mdb-backdrop {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.mdb-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.mdb-title-header {
    position: relative;
    margin-top: -200px;
    margin-bottom: 40px;
    z-index: 10;
}

.mdb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mdb-title-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.mdb-poster {
    flex-shrink: 0;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mdb-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.mdb-title-info {
    flex-grow: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mdb-title-name {
    font-size: 48px;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.mdb-year {
    font-size: 36px;
    font-weight: 400;
    opacity: 0.8;
}

.mdb-meta-row {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 16px;
}

.mdb-meta-row > span:not(:last-child)::after {
    content: "•";
    margin-left: 20px;
    opacity: 0.6;
}

.mdb-rating {
    font-size: 24px;
    margin: 15px 0;
}

.mdb-rating-value {
    font-weight: 700;
    color: #ffd700;
}

.mdb-vote-count {
    font-size: 16px;
    opacity: 0.8;
}

.mdb-title-body {
    background: #fff;
    padding: 40px 0;
}

.mdb-section {
    margin-bottom: 40px;
}

.mdb-section h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.mdb-synopsis p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.mdb-crew-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.mdb-crew-member {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.mdb-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.mdb-cast-member {
    text-align: center;
}

.mdb-cast-member img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mdb-cast-info {
    text-align: center;
}

.mdb-cast-name {
    display: block;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    margin-bottom: 5px;
}

.mdb-cast-name:hover {
    text-decoration: underline;
}

.mdb-character {
    display: block;
    font-size: 14px;
    color: #666;
}

.mdb-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mdb-post-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mdb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mdb-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.mdb-post-content {
    padding: 15px;
}

.mdb-post-type {
    display: inline-block;
    padding: 4px 10px;
    background: #0073aa;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mdb-post-title {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.mdb-post-title a {
    color: #333;
    text-decoration: none;
}

.mdb-post-title a:hover {
    color: #0073aa;
}

.mdb-post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.mdb-external-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mdb-external-review {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.mdb-external-review h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.mdb-external-review h4 a {
    color: #0073aa;
    text-decoration: none;
}

.mdb-external-review h4 a:hover {
    text-decoration: underline;
}

.mdb-external-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

/* Technical Details */
.mdb-technical-details {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.mdb-detail-section {
    margin-bottom: 30px;
}

.mdb-detail-section:last-child {
    margin-bottom: 0;
}

.mdb-detail-title {
    font-size: 24px;
    margin: 0 0 20px 0;
}

.mdb-detail-title a {
    color: #0073aa;
    text-decoration: none;
}

.mdb-detail-title a:hover {
    text-decoration: underline;
}

.mdb-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mdb-detail-item {
    display: flex;
    gap: 10px;
}

.mdb-detail-item strong {
    flex-shrink: 0;
    color: #333;
}

.mdb-synopsis {
    margin-top: 20px;
}

.mdb-synopsis strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.mdb-synopsis p {
    line-height: 1.6;
    color: #555;
}

/* Rating Stars */
.mdb-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mdb-star {
    line-height: 1;
}

.mdb-star-full {
    color: #ffd700;
}

.mdb-star-half {
    color: #ffd700;
    position: relative;
}

.mdb-star-half::after {
    content: "☆";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.mdb-star-empty {
    color: #ccc;
}

.mdb-rating-value {
    margin-left: 8px;
    font-size: 0.9em;
    color: #666;
}

.mdb-stars-small {
    font-size: 14px;
}

.mdb-stars-medium {
    font-size: 18px;
}

.mdb-stars-large {
    font-size: 24px;
}

/* Producer Badge */
.mdb-producer-badge {
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #0073aa;
    border-radius: 8px;
    background: #f0f9ff;
}

.mdb-badge-full {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mdb-badge-icon svg {
    width: 48px;
    height: 48px;
    color: #0073aa;
}

.mdb-badge-title {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
    color: #0073aa;
}

.mdb-badge-description {
    margin: 10px 0;
    color: #555;
}

.mdb-badge-api-url {
    display: block;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

.mdb-badge-minimal .mdb-badge-text {
    color: #0073aa;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mdb-title-content {
        flex-direction: column;
    }
    
    .mdb-poster {
        width: 200px;
        margin: 0 auto;
    }
    
    .mdb-title-name {
        font-size: 32px;
    }
    
    .mdb-cast-grid,
    .mdb-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}