/* Google Play Store inspired styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.app-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.app-icon {
    margin-right: 20px;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-info h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.developer {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ff9800;
    font-size: 18px;
    margin-right: 10px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.download-section {
    text-align: center;
}

.download-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.download-btn:hover {
    background-color: #3367d6;
}

.file-size {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Featured Image */


/* Screenshots */
.screenshots {
    padding: 20px;
}

.screenshots h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.screenshot-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.screenshot-grid img {
    width: 200px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Description */
.description {
    padding: 20px;
}

.description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.description-content {
    position: relative;
}

.short-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 12px;
}

.see-more {
    color: #666;
    font-weight: 500;
    cursor: pointer;
    margin-left: 5px;
    text-decoration: none;
    font-size: 14px;
}

.long-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: none;
}

/* Policy Sections */
.policy-section, .contact-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.policy-section h2, .contact-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible .arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.policy-content, .contact-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.policy-content.show, .contact-content.show {
    max-height: 1000px; /* Adjust based on content height */
}

.policy-content h3, .contact-content strong {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #555;
}

.policy-content p, .contact-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Ratings & Reviews */
.reviews-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.reviews-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviews-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.reviews-content.show {
    max-height: 1000px; /* Adjust based on content height */
}

.overall-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.overall-rating .rating {
    margin-right: 20px;
}

.overall-rating p {
    color: #666;
    font-size: 14px;
}

.review-list {
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.review-stars {
    color: #ff9800;
    font-size: 16px;
    margin-right: 10px;
}

.review-author {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.review-date {
    color: #666;
    font-size: 12px;
}

.review-text {
    color: #555;
    line-height: 1.4;
    font-size: 14px;
}

/* Review Form Styles */
.review-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.review-form h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 25px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
    margin: 0 2px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ff9800;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-review-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-review-btn:hover {
    background-color: #3367d6;
}

.submit-review-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }

    .app-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .featured-image{
        display: none;
    }

    .screenshot-grid {
        /* Keep horizontal scrolling on mobile */
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .screenshot-grid img {
        width: 200px; /* Keep original width for horizontal scrolling */
        height: 350px;
        flex-shrink: 0;
    }

    .overall-rating {
        flex-direction: column;
        align-items: flex-start;
    }

    .overall-rating .rating {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-author, .review-date {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #d32f2f;
    font-size: 20px;
    font-weight: 500;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.modal-body p:first-child {
    font-weight: 600;
    color: #d32f2f;
}

.modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cancel-btn {
    background-color: #757575;
    color: white;
}

.cancel-btn:hover {
    background-color: #616161;
}

.confirm-btn {
    background-color: #d32f2f;
    color: white;
}

.confirm-btn:hover {
    background-color: #b71c1c;
}

/* Modal Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
