/* Main Container - Centered and Responsive */
.celebrity-age-checker-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header Section - Centered */
.tool-header {
    margin-bottom: 30px;
}

.tool-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-header .tagline {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Search Container - Centered */
.search-container {
    margin: 0 auto 30px;
    max-width: 700px;
}

.search-box {
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#celebrity-search {
    flex: 1;
    max-width: 500px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#celebrity-search:focus {
    border-color: #4a90e2;
}

#search-button {
    padding: 0 25px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #357abd;
}

/* Suggestions - Centered */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

/* Results - Centered Layout */
#results-container {
    margin: 0 auto;
    max-width: 800px;
}

.celebrity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.celebrity-image-container {
    margin-bottom: 25px;
}

.celebrity-image-container img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.celebrity-info {
    text-align: center;
}

.celebrity-info h2 {
    color: #333;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.info-label {
    font-weight: bold;
    color: #555;
    margin-right: 15px;
}

.highlight {
    color: #4a90e2;
    font-weight: bold;
}

/* Loading and Error States - Centered */
#loading-container, #error-container {
    text-align: center;
    padding: 30px;
    margin: 0 auto;
    max-width: 600px;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#error-container {
    background-color: #ffebee;
    border-radius: 5px;
}

#try-wikipedia-btn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#try-wikipedia-btn:hover {
    background-color: #357abd;
}

/* Trending Section - Centered */
.trending-section {
    margin: 40px auto;
    max-width: 700px;
}

.trending-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.trending-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trending-item {
    padding: 8px 15px;
    background-color: #e9f2fd;
    color: #4a90e2;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

.trending-item:hover {
    background-color: #4a90e2;
    color: white;
}

/* Share Section - Centered */
.share-section {
    margin: 30px auto;
    max-width: 600px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-section p {
    margin-bottom: 15px;
    color: #666;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }

/* SEO Article Section */
.seo-article {
    text-align: left;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.05);
}

.seo-article h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.seo-article h3 {
    color: #444;
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.seo-article p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-article ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-article li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        align-items: center;
    }
    
    #celebrity-search {
        border-radius: 5px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    
    #search-button {
        border-radius: 5px;
        width: 100%;
        padding: 15px;
    }
    
    .suggestions-container {
        left: 20px;
        right: 20px;
        width: auto;
        transform: none;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-label {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .celebrity-age-checker-container {
        padding: 20px 15px;
    }
    
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .celebrity-info h2 {
        font-size: 1.5rem;
    }
    
    .social-share {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn {
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}    
    /* Add this to your style.css file */

/* Results Container - Centered */
#results-container {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.celebrity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 100%;
}

.celebrity-image-container {
    margin-bottom: 25px;
    text-align: center;
}

.celebrity-info {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
}

/* For mobile view */
@media (max-width: 600px) {
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
}
