/* Global Styles */
:root {
    --primary-color: #ff6b00;
    --secondary-color: #0066cc;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.25rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 2rem;
    font-weight: 600;
}

.hero-section .btn-primary:hover {
    background-color: #e05e00;
    border-color: #e05e00;
}

/* Card Styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Button Styling */
.btn-primary {
    background-color: #FF6B00;
    border-color: #FF6B00;
    color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #E05E00;
    border-color: #E05E00;
    color: white;
}

.btn-outline-primary {
    color: #FF6B00;
    border-color: #FF6B00;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: #FF6B00;
    border-color: #FF6B00;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

/* Footer Styling */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Ad Containers */
.ad-container {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.ad-label {
    background-color: #eee;
    color: #666;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    text-align: center;
}

.ad-placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .adsense-top .ad-placeholder,
    .adsense-bottom .ad-placeholder {
        width: 320px !important;
        height: 100px !important;
    }
    
    .adsense-mid .ad-placeholder {
        width: 300px !important;
        height: 250px !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Tool Page Specific Styles */
.tool-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-description {
    color: #666;
    margin-bottom: 2rem;
}

.tool-input-group {
    margin-bottom: 1.5rem;
}

.tool-submit-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tool-submit-btn:hover {
    background-color: #e05e00;
    border-color: #e05e00;
}

.tool-output {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.tool-output.active {
    display: block;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy {
    background-color: #6c757d;
}

/* Lucky Number Generator Tool Styles */
.lottery-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.lottery-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.lottery-ball::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
    border-radius: 50%;
}

.lottery-ball.megaball {
    background: linear-gradient(135deg, #4a90e2, #3273c4);
    color: white;
}

.lottery-ball.powerball {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Animation for lottery balls */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.lottery-ball {
    animation: popIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Related Tools */
.related-tools {
    margin-top: 3rem;
}

.related-tools h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tool Search Styling */
#searchResults {
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#searchResults .dropdown-item {
    padding: 10px 15px;
    transition: background-color 0.2s;
}

#searchResults .dropdown-item:hover {
    background-color: #f8f9fa;
}

#toolSearch:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
    border-color: #FF8C3F;
}

.search-container {
    position: relative;
}
