/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* AdSense Styles */
.ad-container {
    text-align: center;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 10px;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Widgets Section */
.widgets-section {
    padding: 3rem 0;
    background-color: white;
}

.widgets-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.widgets-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.widget:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.widget-header {
    padding: 20px;
    color: white;
    text-align: center;
}

.widget-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.shopping-widget .widget-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.cash-counter-widget .widget-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.calculator-widget .widget-header {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.pdf-editor-widget .widget-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Live TV widget styling */
.live-tv-widget .widget-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Cricket widget styling */
.cricket-widget .widget-header {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* PDF Editor button specific styling */
.pdf-editor-widget .widget-button {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-editor-widget .widget-button:hover {
    background-color: #8e44ad;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Live TV button specific styling */
.live-tv-widget .widget-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-tv-widget .widget-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Cricket button specific styling */
.cricket-widget .widget-button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cricket-widget .widget-button:hover {
    background-color: #d35400;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Opening states for buttons */
.pdf-editor-widget .widget-button:active {
    background-color: #6c3483 !important;
    transform: scale(0.95);
}

.live-tv-widget .widget-button:active {
    background-color: #1f618d !important;
    transform: scale(0.95);
}

.cricket-widget .widget-button:active {
    background-color: #a04000 !important;
    transform: scale(0.95);
}

/* Hover effects for widgets */
.pdf-editor-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
}

.live-tv-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.cricket-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3);
}

.widget-content {
    padding: 20px;
    text-align: center;
}

.widget-content p {
    margin-bottom: 15px;
    color: #555;
}

.widget-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.widget-button:hover {
    background-color: #2980b9;
}

/* Make the entire widget clickable */
.clickable-widget {
    position: relative;
}

.clickable-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.widget-content {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section p {
    color: #ddd;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #4a5568;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .widgets-container {
        flex-direction: column;
        align-items: center;
    }
    
    .widget {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ad-container {
        padding: 10px 0;
    }
}