/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    margin-bottom: 1rem;
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Main content */
main {
    margin-bottom: 3rem;
}

/* Actors grid for homepage */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.actor-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.actor-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #666;
    font-size: 0.9rem;
}

.actor-info {
    padding: 1.5rem;
}

.actor-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.actor-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actor-info h3 a:hover {
    color: #667eea;
}

.birth-year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.imdb-id {
    color: #888;
    font-size: 0.8rem;
    font-family: monospace;
}

/* Actor profile page */
.actor-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.actor-image-large {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.actor-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #666;
    font-size: 1.1rem;
}

.actor-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.25rem;
}

.detail-section p {
    color: #555;
    line-height: 1.5;
}

.professions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profession-tag {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.alternative-names {
    list-style: none;
    padding-left: 0;
}

.alternative-names li {
    padding: 0.25rem 0;
    border-left: 3px solid #667eea;
    padding-left: 0.75rem;
    margin-bottom: 0.25rem;
}

.external-link {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Biography section */
.biography-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.biography-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.biography-content {
    line-height: 1.8;
    color: #444;
}

.biography-content h2 {
    color: #333;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.biography-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.age-info {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* No actors message */
.no-actors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-actors p {
    color: #666;
    font-size: 1.1rem;
}

/* Birthday sections */
.birthday-section, .upcoming-birthdays-section, .height-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.birthday-section h2, .upcoming-birthdays-section h2, .height-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.birthday-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.birthday-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.birthday-card:hover {
    transform: translateY(-2px);
}

.birthday-image {
    width: 160px;
    height: 160px;
    border-radius: 15%;
    object-fit: cover;
    margin-right: 1rem;
}

.birthday-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.birthday-info h3 a {
    color: #333;
    text-decoration: none;
}

.birthday-info h3 a:hover {
    color: #667eea;
}

.birthday-age {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.upcoming-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.upcoming-item:hover {
    transform: translateY(-2px);
}

.upcoming-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #667eea;
}

.upcoming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upcoming-info a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.upcoming-info a:hover {
    color: #667eea;
}

.upcoming-age {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.days-until {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* Actors section */
.actors-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.actors-section h2 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.letter-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.letter-section:not(:last-child) {
    margin-bottom: 2rem;
}

.letter-heading {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}

.letter-actors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.actor-link {
    color: #555;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.actor-link:hover {
    background: #f0f0f0;
    color: #667eea;
    text-decoration: underline;
}

/* Height sections */
.height-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.height-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.height-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.height-item a:hover {
    color: #667eea;
}

.height-value {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .actor-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .actor-image-large {
        height: 300px;
    }

    .actor-info {
        padding: 1rem;
    }

    .biography-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .actors-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .actor-profile {
        padding: 1.5rem;
    }
}
